Class PerSensorFixedScaler
Per-sensor fixed ranges; each cell maps its own [min,max] to [0..1].
Handles grid resize gracefully:
- If new count matches arrays → use them directly.
- If new count differs → broadcasts overall [globalMin, globalMax] to all cells.
This means you never crash on channel count changes, just get a less specific scaling.
Inheritance
PerSensorFixedScaler
Assembly: MOSAIC.dll
Syntax
public sealed class PerSensorFixedScaler : IHeatmapScaler
Constructors
PerSensorFixedScaler(double[], double[], double)
Declaration
public PerSensorFixedScaler(double[] mins, double[] maxs, double epsilon = 1E-09)
Parameters
Fields
Declaration
private int _configuredCount
Field Value
_eps
Declaration
private readonly double _eps
Field Value
_max
Declaration
Field Value
_min
Declaration
Field Value
_overallMax
Declaration
private double _overallMax
Field Value
_overallMin
Declaration
private double _overallMin
Field Value
Methods
ComputeOverallBounds()
Declaration
private void ComputeOverallBounds()
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