Loading

mapper.dotproduct.tanh


mapper
Since v1.0.0
Available on all platforms
See also

The mapper.dotproduct.tanh function consumes a vector as parameter (a *LIST of DOUBLE) from the top of the stack.

The resulting mapper computes the dot product of the given vector with the values of the sliding window, then it returns the hyperbolic tangent of this result.

If the sliding window at a tick does not have the same size as the given vector, then no value is produced.

The resulting mapper can only be applied to values of type LONG or DOUBLE, it will produce no value for types STRING and BOOLEAN.

Signature

Examples

NEWGTS 1 10 <% 'i' STORE $i 100 * NaN NaN NaN $i ADDVALUE %> FOR [ SWAP [ 1.0 0.1 ] mapper.dotproduct.tanh 1 0 0 ] MAP