Table of Contents

Class FitsValueNormalizer<T>

Namespace
FitsModel.FitsStream.Reader.Values
Assembly
FitsModel.dll

Linearly normalizes values read from a FITS data block to a byte value.

public class FitsValueNormalizer<T> : IFitsValueNormalizer, IFitsValueReader<T> where T : INumber<T>

Type Parameters

T
Inheritance
FitsValueNormalizer<T>
Implements
Inherited Members

Constructors

FitsValueNormalizer(double, double)

Initializes a new instance of the FitsValueNormalizer<T> class with the specified minimum and maximum values.

public FitsValueNormalizer(double min, double max)

Parameters

min double

The minimum value of the range. Must be less than max.

max double

The maximum value of the range. Must be greater than min.

Properties

Max

Maximum value for normalization.

public double Max { get; }

Property Value

double

Min

Minimum value for normalization.

public double Min { get; }

Property Value

double

NormalizedValues

A new array containing the normalized values read so far.

public byte[] NormalizedValues { get; }

Property Value

byte[]

Methods

ReadValue(T)

Normalizes a single value to a byte in the range 0-255.

public void ReadValue(T value)

Parameters

value T

Exceptions

NotImplementedException

ReadValues(IEnumerable<T>)

Normalizes a collection of values to bytes in the range 0-255.

public void ReadValues(IEnumerable<T> values)

Parameters

values IEnumerable<T>

Exceptions

NotImplementedException