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
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
Fields
_eps
Declaration
private readonly double _eps
Field Value
_max
Declaration
private readonly double _max
Field Value
_min
Declaration
private readonly double _min
Field Value
Methods
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
Implements