Table of Contents

Class Discretizer

Namespace
NominalSystems.Maths
Assembly
NominalSystems.Maths.dll

This module discretizes data for output. It has the option to carry over discretization error or not.

public class Discretizer
Inheritance
Discretizer

Constructors

Discretizer()

Default constructor that sets up the states

public Discretizer()

Discretizer(int)

Constructor that lets the user initialized the discretization model to the right siz

public Discretizer(int numStates)

Parameters

numStates int

The number of states to initialise

Fields

LSB

Size of bin, bit value, least significant bit

public Vector LSB

Field Value

Vector

Methods

Discretize(Vector)

Discretizes a vector with the errors

public Vector Discretize(Vector undiscretizedVector)

Parameters

undiscretizedVector Vector

An undiscretized vector

Returns

Vector

A discretized vector

GetDiscretizationErrors()

Retursn the Discretization error list

public Vector GetDiscretizationErrors()

Returns

Vector

A list of discretization errors

SetRoundDirection(RoundDirection)

Updates the rounding direction of the discretizer

public void SetRoundDirection(RoundDirection direction)

Parameters

direction RoundDirection

The new direction