README ¶ normalize Overview Description Divide all values of array by value (i.e. x/value), if minvalue is given applies (x-minval)/(value-minvalue) where x is the data Implementation details Converts to float first. Compliance to Spec Rough level of compliance 100% Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New(ctx operation.InitContext) (operation.Operation, error) type Input func (i *Input) FromMap(values map[string]interface{}) error type Operation func (a *Operation) Eval(inputs map[string]interface{}) (interface{}, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(ctx operation.InitContext) (operation.Operation, error) Types ¶ type Input ¶ type Input struct { Data interface{} `md:"data"` Value float32 `md:"value"` Min float32 `md:"minvalue"` } func (*Input) FromMap ¶ func (i *Input) FromMap(values map[string]interface{}) error type Operation ¶ type Operation struct { // contains filtered or unexported fields } func (*Operation) Eval ¶ func (a *Operation) Eval(inputs map[string]interface{}) (interface{}, error) Source Files ¶ View all Source files metadata.go operation.go Click to show internal directories. Click to hide internal directories.