Mathematics and statistics toolkit.
- Being able to apply the log(x) function against an entire list of values
- Being able to compute the distance between two lists
This namespace contains definitions for numerical functions from the c++ standard library.
This namespace contains a number of special conversion functions, matrix manipulation functions and transformation functions.
- Download the latest release archive streamsx.math-X.Y.Z-el7-amd64--.tgz from: releases
- Unpack the archive e.g. to
$HOME/toolkits
- Configure the SPL compiler to find the toolkit root directory. Use one of the following methods:
- Set the
STREAMS_SPLPATH
environment variable to the root directory of a toolkit or multiple toolkits (with : as a separator). For example:
export STREAMS_SPLPATH=$HOME/toolkits/com.ibm.streamsx.math
- Specify the
-t
or--spl-path
command parameter when you run thesc
command. For example:
sc -t $HOME/toolkits/com.ibm.streamsx.math -M MyMain
where MyMain
is the name of the SPL main composite.
Note: These command parameters override the STREAMS_SPLPATH
environment variable.
- Add the toolkit location in InfoSphere Streams Studio.
- Develop your application. To avoid the need to fully qualify the operators, add a use directive in your application.
- For example, you can add the following clause in your SPL source file:
use com.ibm.streamsx.math::*;
- Build your application. You can use the
sc
command or Streams Studio. - Start the InfoSphere Streams instance.
- Run the application. You can submit the application as a job by using the
streamtool submitjob
command or by using Streams Studio.