ChartDirector 7.1 (.NET Edition)

RanSeries.get2DSeries


Usage

[C#]public double[] get2DSeries(int xLen, int yLen, double minValue, double maxValue);
[VB]Public Function get2DSeries(xLen As Integer, yLen As Integer, minValue As Double, maxValue As Double) As Double()

Description

Gets an array of random numbers representing points on a 2D grid in which the difference between neighbouring points is random.

Arguments

ArgumentDefaultDescription
xLen(Mandatory)The number of points in the grid in the x direction.
yLen(Mandatory)The number of points in the grid in the y direction.
minValue(Mandatory)The minimum value of the random number.
maxValue(Mandatory)The maximum value of the random number.

Return Value

An array of random numbers representing points on a 2D grid in which the difference between neighbouring points is random. The array will contain (xLen * yLen) elements. The element at index (y * xLen + x) represents the point at (x, y), in which x and y are integers such that 0 <= x < xLen and 0 <= y < yLen.