Data Point
Data points are specified with one of the following API functions. All of the data points that have been previously specified are cleared when one of the following functions are called (data points can only be set using one of these functions and not a combination).
Function |
Description |
|---|---|
This function sets a single data point. The PSO function will operate with only one data point. |
|
This function sets multiple data points. The PSO function will operate with the specified data points. |
|
This function sets multiple data points, evenly spaced over the specified interval. See the section below for additional information regarding this method of specifying the data points. |
Setting the Data Point as an Interval
When using the SetPSOIntervalData function to specify the data points, three values are specified: rangeStart, rangeEnd, and interval. The data points are defined as all points p that satisfy [p = rangeStart + n*interval] and [rangeStart < p <= rangeEnd] for integer n. Because p must be greater than rangeStart, the first point is equal to [p = rangeStart + 1*interval].
For example, if rangeStart = 0, rangeEnd = 5000, and interval = 1000, then the data points will be equal to 1000, 2000, 3000, 4000, and 5000, as these points all satisfy [p = rangeStart + n*interval] and [rangeStart < p <= rangeEnd] for integer n.
Unlike the other methods of specifying points, there is no limit to the number of data points that can be generated when specifying data points this way. The number of data points may exceed maxPsoData.