Documentation ¶
Overview ¶
FilterMAIR implements a trimmed moving average. Outliers are eliminated using interquartile range see: https://en.wikipedia.org/wiki/Interquartile_range
FilterMEDIR implements a trimmed median. Outliers are eliminated using interquartile range see: https://en.wikipedia.org/wiki/Interquartile_range
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter interface {
// contains filtered or unexported methods
}
Filter defines a filter's methods processing trades from the tradesBlockService
type FilterMAIR ¶
type FilterMAIR struct {
// contains filtered or unexported fields
}
FilterMAIR contains the configuration parameters of the filter
func NewFilterMAIR ¶
NewFilterMAIR creates a FilterMAIR
type FilterMEDIR ¶
type FilterMEDIR struct {
// contains filtered or unexported fields
}
FilterMEDIR contains the configuration parameters of the filter
func NewFilterMEDIR ¶
NewFilterMEDIR creates a FilterMEDIR
type FilterTLT ¶
type FilterTLT struct {
// contains filtered or unexported fields
}
func NewFilterTLT ¶
type FiltersBlockService ¶
type FiltersBlockService struct {
// contains filtered or unexported fields
}
func NewFiltersBlockService ¶
func NewFiltersBlockService(previousBlockFilters []dia.FilterPoint, datastore models.Datastore, chanFiltersBlock chan *dia.FiltersBlock) *FiltersBlockService
func (*FiltersBlockService) Close ¶
func (s *FiltersBlockService) Close() error
func (*FiltersBlockService) ProcessTradesBlock ¶
func (s *FiltersBlockService) ProcessTradesBlock(tradesBlock *dia.TradesBlock)
Click to show internal directories.
Click to hide internal directories.