Class SingleMeasurement
Represents a single measurement consisting the 470 nm wavelength channel.
public class SingleMeasurement : IJsonSerializable
- Inheritance
-
SingleMeasurement
- Implements
- Inherited Members
Constructors
SingleMeasurement(Channel?)
Initializes a new instance of the SingleMeasurement class with optional channels.
public SingleMeasurement(Channel? channel470 = null)
Parameters
channel470
ChannelThe channel for 470 nm (default: new Channel()).
Properties
Channel470
Gets or sets the channel for 470 nm measurements.
public Channel Channel470 { get; set; }
Property Value
Methods
Delta()
Returns the difference between sample and dark.self->
public double Delta()
Returns
- double
Difference between sample and dark
FromJson(JsonNode)
Creates a SingleMeasurement instance from a JSON node.
public static SingleMeasurement FromJson(JsonNode node)
Parameters
node
JsonNodeThe JSON node containing measurement data.
Returns
- SingleMeasurement
A new SingleMeasurement instance.
Exceptions
- ArgumentNullException
Thrown if the JSON node is null or missing required properties.
ToJson()
Converts the measurement data to a JSON representation.
public JsonNode ToJson()
Returns
- JsonNode
A JsonNode representing the measurement.
ToString()
Returns a string representation of the measurement values.
public override string ToString()
Returns
- string
A formatted string containing all channel values.