Represents a range between any two finite values (inclusive) /summary>
More...
|
| Range (double min, double max) |
|
override string | ToString () |
|
double | Normalize (double value, bool clamp=false) |
| Returns the given value as a fraction of the difference between Min and Max. This is a min-max feature scaling.
|
|
double | Clamp (double value) |
|
|
double | Min [get] |
|
double | Max [get] |
|
Represents a range between any two finite values (inclusive) /summary>
◆ Range()
ScottPlot.Range.Range |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
|
inline |
◆ Clamp()
double ScottPlot.Range.Clamp |
( |
double |
value | ) |
|
|
inline |
◆ GetRange() [1/2]
static Range ScottPlot.Range.GetRange |
( |
double |
input[,] | ) |
|
|
inlinestatic |
◆ GetRange() [2/2]
◆ Normalize()
double ScottPlot.Range.Normalize |
( |
double |
value, |
|
|
bool |
clamp = false |
|
) |
| |
|
inline |
Returns the given value as a fraction of the difference between Min and Max. This is a min-max feature scaling.
- Parameters
-
value | The value to normalize |
clamp | If true, values outside of the range will be clamped onto the interval [0, 1]. |
- Returns
- The normalized value
summary> Returns the given value clamped to the range (inclusive). /summary>
◆ ToString()
override string ScottPlot.Range.ToString |
( |
| ) |
|
|
inline |
◆ Max
double ScottPlot.Range.Max |
|
get |
◆ Min
double ScottPlot.Range.Min |
|
get |
The documentation for this struct was generated from the following file:
- ScottPlot/src/ScottPlot5/ScottPlot5/Primitives/Range.cs