func NewOptions() Options {
	o := &options{
		eps:                    defaultEps,
		capacity:               defaultCapacity,
		insertAndCompressEvery: defaultInsertAndCompressEvery,
		flushEvery:             defaultFlushEvery,
	}
	o.initPools()
	return o
}
NewOptions creates a new options.
package cm
import (
	"errors"
	"fmt"
	"github.com/m3db/m3x/pool"
)
const (
	minEps          = 0.0
	maxEps          = 0.5
	defaultEps      = 1e-3
	defaultCapacity = 16
	defaultInsertAndCompressEvery = 1
	defaultFlushEvery = 0
)
var (
	defaultBuckets = []pool.Bucket{
		{Capacity: 16, Count: 4096},
	}
	errInvalidEps   = fmt.Errorf("epsilon value must be between %f and %f", minEps, maxEps)
	errNoFloatsPool = errors.New("no floats pool set")
	errNoStreamPool = errors.New("no stream pool set")
)
type options struct {
	eps                    float64
	capacity               int
	insertAndCompressEvery int
	flushEvery             int
	streamPool             StreamPool
	samplePool             SamplePool
	floatsPool             pool.FloatsPool
}