Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
BucketSize int // number of table values to group together in tree leaf-node
}
Options is a config for the NewZTable function which allows bucket size customization. Default bucket size is 30
type ZTable ¶
type ZTable struct {
// contains filtered or unexported fields
}
ZTable is the core z-score table component
func NewZTable ¶
NewZTable creates and returns a new ZTable object. 'options' allows you to set the bucket size of the leaf nodes. Tuning bucket size will allow you to trade off memory for speed and vice-versa in the z-score lookup,
func (*ZTable) FindPercentage ¶
FindPercentage returns the percentage of a given z-score from the table
Click to show internal directories.
Click to hide internal directories.