Namespaces

Types

Type SampleList

Namespace MathNet.Numerics

Interfaces ICloneable, IDictionary

Events

Methods

Properties

Events

SampleAltered

Event which notifies when a sample has been altered.

Public instance methods

void Add(double t, double x)

Add a new sample to the list.
Parameters
double t key t, where x=f(t) or (t,x).
double x value x, where x=f(t) or (t,x).

void Clear()

Remove all samples from the list.

SampleList Clone()

Create a copy of this sample list.
Parameters
return SampleList

bool ContainsT(double t)

True if this sample list contains a sample at t
Parameters
return bool
double t

bool ContainsX(double x)

True if this sample list contains a sample value x
Parameters
return bool
double x

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

double GetT(int index)

Get the key t stored at the given index, where x=f(t) or (t,x).
Parameters
return double
int index

Type GetType()

Parameters
return Type

double GetX(int index)

Get the value x stored at the given index, where x=f(t) or (t,x).
Parameters
return double
int index

int Locate(double t, int nearIndex)

Find the index i of a sample near t such that t[i] <= t <= t[i+1].
This method is faster if the expected index is near nearIndex (compared to the list size) but may be slower otherwise (worst case: factor 2 slower, best case: log2(n) faster).
Parameters
return int
double t
int nearIndex

int Locate(double t)

Find the index i of a sample near t such that t[i] <= t <= t[i+1].
Parameters
return int
double t

void Remove(double t)

Remove all samples with a key exactly equal to t, where x=f(t) or (t,x).
Parameters
double t

void RemoveAt(int index)

Remove the sample at the given index.
Parameters
int index

string ToString()

Parameters
return string

Public properties

int Capacity get; set;

The count of unique samples supported.
return int

int Count get;

The count of unique samples stored.
return int

double MaxT get;

The biggest key t in the sample list, where x=f(t) or (t,x).
return double

double MinT get;

The smallest key t in the sample list, where x=f(t) or (t,x).
return double