ISampleSet

References
public interface ISampleSet : IDimensional
Base interface (no generics) for n-dimensional sample sets.

Properties

Coordinates

#
IEnumerator<PointN> Coordinates { get; }
Enumerate over all sample coordinates.

Count

#
int Count { get; }
Gets the number of samples in this set.

Description

string Description { get; }
Gets a description of this object type.
inherited fromIDimensional

Dimensionality

int Dimensionality { get; }
Gets the dimensionality of this object.
inherited fromIDimensional

Samples

#
IEnumerable<object> Samples { get; }
Enumerate over all samples.

Indexers

this[]

#
object this[int index] { get; }
Gets the item at the given index.
index (int)Index of item to retrieve.
Item at index.

Methods

ComputeAxisDomain

#
bool ComputeAxisDomain(int axis, int[] indices, out double min, out double mean, out double max)
Compute the domain and average of all samples along some axis.
axis (int)Axis to measure.
indices (int[])Indices to measure.
min (out double)Lowest value will be returned here.
mean (out double)Average (mean) value will be returned here.
max (out double)Highest value will be returned here.
True on success, false on failure. This method only returns false if the set is empty.

ComputeAxisDomain

#
bool ComputeAxisDomain(int axis, out double min, out double mean, out double max)
Compute the domain and average of all samples along some axis.
axis (int)Axis to measure.
min (out double)Lowest value will be returned here.
mean (out double)Average (mean) value will be returned here.
max (out double)Highest value will be returned here.
True on success, false on failure. This method only returns false if the set is empty.

ComputeAxisMean

#
double ComputeAxisMean(int axis, int maxSamples, int[] indices)
Compute the exact or estimated mean for this set.
axis (int)Spatial axis.
maxSamples (int)Maximum number of samples to take into account. If this limit is less than the total number of potential samples, the resulting mean will be an estimate.
indices (int[])Set of sample indices to take into account.
Computed mean along given axis.

ComputeAxisMean

#
double ComputeAxisMean(int axis, int maxSamples)
Compute the exact or estimated mean for this set.
axis (int)Spatial axis.
maxSamples (int)Maximum number of samples to take into account. If this limit is less than the total number of potential samples, the resulting mean will be an estimate.
Computed mean along given axis.

ComputeBoundingBox

#
BoxN ComputeBoundingBox()
Compute the bounding box for all items.

ComputeBoundingBox

#
BoxN ComputeBoundingBox(IEnumerable<int> indices)
Compute the bounding box for a subset of samples.
indices (IEnumerable<int>)Indices to include.
Bounding box.

ComputeKdTree

#
KdTree ComputeKdTree()
Compute the k-d tree associated with this sample set. Once a k-d tree has been computed once, additional calls to this method will return a cached version.
k-d tree or null if this sampling set is empty.

ComputeKMeansClusters

#
KMeansCluster[] ComputeKMeansClusters(int count, KMeansIteration callback)
Compute a distribution of k-means clusters.
count (int)Number of clusters to compute.
callback (KMeansIteration)Callback method.
Array of clusters.

ComputeKMeansClusters

#
KMeansCluster[] ComputeKMeansClusters(int count)
Compute a distribution of k-means clusters.
count (int)Number of clusters to compute.
Array of clusters.

ComputeKMeansClusters

#
KMeansCluster[] ComputeKMeansClusters(PointN[] initialMeans, KMeansIteration callback)
Compute a distribution of k-means clusters.
initialMeans (PointN[])Number of clusters to compute.
callback (KMeansIteration)Callback method.
Array of clusters.

ComputeKMeansClusters

#
KMeansCluster[] ComputeKMeansClusters(PointN[] initialMeans)
Compute a distribution of k-means clusters.
initialMeans (PointN[])Number of clusters to compute.
Array of clusters.

ComputeMean

#
PointN ComputeMean()
Compute the exact or estimated mean for this set.
Computed mean.

ComputeMean

#
PointN ComputeMean(int maxSamples, int[] indices)
Compute the exact or estimated mean for this set.
maxSamples (int)Maximum number of samples to actually use.
indices (int[])Set of sample indices to take into account.
Computed mean.

ComputeMean

#
PointN ComputeMean(int[] indices)
Compute the exact or estimated mean for this set.
indices (int[])Set of sample indices to take into account.
Computed mean.

DistributePoints

#
PointN[] DistributePoints(int count, bool limitToSet)
Randomly distribute N points within the space. This method performs pretty poorly when 'count' is large.
count (int)Number of points to distribute.
limitToSet (bool)If true, distributed points are constrainted to the existing point set.
Array of randomly distributed points.

NormaliseProjection

#
ISampleSet NormaliseProjection()
Normalise the entire projection to the unit hypercube.

NormaliseProjection

#
ISampleSet NormaliseProjection(double min, double max)
Normalise the entire projection to a hypercube in a specific domain.
min (double)Hypercube domain start.
max (double)Hypercube domain end.

NormaliseProjection

#
ISampleSet NormaliseProjection(double size)
Normalise the entire projection to a hypercube of a specific size.
size (double)Edge length of hypercube.

Point

#
PointN Point(int index)
Gets the point associated with the given index.
index (int)Index.
Point associated with index.

Points

#
PointN[] Points(int[] indices)
Get an array of points.
indices (int[])Point indices to retrieve.
Array of points.