Class AmpCurveParams
Piecewise amplitude curve parameters used to map mA to 0..255. mA <= LowThreshold: out = pow(mA / LowConst, ExpPower) + 1 mA > LowThreshold: out = ((mA + LinearOffset) / LinearSlope) + 1
Inheritance
object
AmpCurveParams
Namespace: Wss.CoreModule
Assembly: WSS_Core_Interface.dll
Syntax
public sealed class AmpCurveParams
Properties
ExpPower
Exponent used in the low-range power segment (already reciprocal, e.g., 1/1.5466).
Declaration
public double ExpPower { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LinearOffset
Offset used in the high-range linear segment.
Declaration
public double LinearOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LinearSlope
Slope divisor used in the high-range linear segment.
Declaration
public double LinearSlope { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LowConst
Low-range divisor constant (C) for the power segment.
Declaration
public double LowConst { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LowThreshold
Boundary between the two segments in mA.
Declaration
public double LowThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Default72mA()
Returns the built-in 72 mA piecewise curve parameters that match the historical mapping used by the core (power segment below 4 mA and linear segment above).
Declaration
public static AmpCurveParams Default72mA()
Returns
| Type | Description |
|---|---|
| AmpCurveParams |