Class GlobalFixedScaler

Global fixed-range scaler. Maps [min..max] → [0..1] for all cells uniformly. Ideal for known signal ranges (e.g., ±1V, 0..100%). Handles grid resize with no issues.

Inheritance
GlobalFixedScaler
Implements
Namespace: MOSAIC.Visualization.Heatmap
Assembly: MOSAIC.dll
Syntax
public sealed class GlobalFixedScaler : IHeatmapScaler

Constructors

GlobalFixedScaler(double, double, double)

Declaration
public GlobalFixedScaler(double min, double max, double epsilon = 1E-09)
Parameters
Type Name Description
double min
double max
double epsilon

Fields

_eps

Declaration
private readonly double _eps
Field Value
Type Description
double

_max

Declaration
private readonly double _max
Field Value
Type Description
double

_min

Declaration
private readonly double _min
Field Value
Type Description
double

Methods

Configure(int)

Called whenever the grid size changes (length = rows*cols). Implementations must handle any cell count gracefully — never throw.

Declaration
public void Configure(int cellCount)
Parameters
Type Name Description
int cellCount

MapFrame(ReadOnlySpan<double>, WeightedPoint[], int[]?, Func<double, double>?, out LegendInfo)

Map an input frame to weights in LiveChartsCore.Defaults.WeightedPoint.Weight.

Declaration
public void MapFrame(ReadOnlySpan<double> frame, WeightedPoint[] points, int[]? indexMap, Func<double, double>? valueTransform, out LegendInfo legend)
Parameters
Type Name Description
ReadOnlySpan<double> frame
WeightedPoint[] points
int[] indexMap
Func<double, double> valueTransform
LegendInfo legend

Implements

IHeatmapScaler

Search documentation

Start typing to search the documentation.