Class JsonIntensityRange
Represents JsonIntensityRange.
public class JsonIntensityRange
- Inheritance
-
JsonIntensityRange
- Inherited Members
Properties
Average
Gets the average intensity value
public double Average { get; }
Property Value
IsZero
Checks if the range represents no intensity (both min and max are 0)
[JsonIgnore]
public bool IsZero { get; }
Property Value
Max
public int Max { get; set; }
Property Value
Min
public int Min { get; set; }
Property Value
Methods
GetRandomValue(Random?)
Gets a random value within the intensity range
public int GetRandomValue(Random? random = null)
Parameters
randomRandomRandom instance (optional)
Returns
- int
Random intensity value between min and max
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.