IMSL C# Numerical Library

Heatmap Constructor (AxisXY, Double, Double, Double, Double, Double, Double, Double[,], Colormap)

Creates a Heatmap from a double[,] and a Colormap.

public Heatmap(
   AxisXY axis,
   double xmin,
   double xmax,
   double ymin,
   double ymax,
   double zmin,
   double zmax,
   double[,] data,
   Colormap colormap
);

Parameters

axis
An AxisXY object which specifes the parent of this node.
xmin
A double which specifies the minimum x-value of the color data.
xmax
A double which specifies the maximum x-value of the color data.
ymin
A double which specifies the minimum y-value of the color data.
ymax
A double which specifies the maximum y-value of the color data.
zmin
A double which specifies the data value that corresponds to the initial (t=0) value in the Colormap.
zmax
A double which specifies the data value that corresponds to the final (t=1) value in the Colormap.
data
A double[,] containing the data values.
colormap
Maps the values in data to colors.

Remarks

The x-interval (xmin, xmax) is uniformly divided and mapped into the first index of data. The y-interval (ymin, ymax) is uniformly divided and mapped into the second index of data. So, the value of data[0,0] is used to determine the color of the cell whose lower left corner is (xmin, ymin).

If a cell has a data value equal to t then its color is the value of the colormap at s, where

s=\frac{t-\mbox{zmin}}{\mbox{zmax}-\mbox{zmin}}
.

See Also

Heatmap Class | Imsl.Chart2D Namespace | Heatmap Constructor Overload List