Class FitsStatsReader<T>
- Namespace
- FitsModel.FitsStream.Reader.Values
- Assembly
- FitsModel.dll
Calculates running statistics for values read from a FitsDataBlock.
public class FitsStatsReader<T> : IFitsStatsReader, IFitsValueReader<T> where T : INumber<T>
Type Parameters
T
- Inheritance
-
FitsStatsReader<T>
- Implements
- Derived
- Inherited Members
Constructors
FitsStatsReader()
public FitsStatsReader()
Properties
Stats
Gets the statistical data for the values read so far.
public FitsDataStats Stats { get; }
Property Value
Methods
ReadValue(T)
Updates the statistics with a new value.
public void ReadValue(T value)
Parameters
value
T
ReadValues(IEnumerable<T>)
Updates the statistics with a collection of values.
public void ReadValues(IEnumerable<T> values)
Parameters
values
IEnumerable<T>Values to calculate statistics for.
ToString()
Prints a summary of the statistics to a string.
public override string ToString()