ISampleSet

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

Properties

Coordinates

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

Count

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

Description

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

Dimensionality

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

Samples

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

Indexers

this[]

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

Methods

ComputeAxisDomain

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

ComputeAxisDomain

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

ComputeAxisMean

#
Compute the exact or estimated mean for this set.
double ComputeAxisMean(
axis,
Spatial axis.
maxSamples,
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.
int[]
indices
Set of sample indices to take into account.
)
Computed mean along given axis.

ComputeAxisMean

#
Compute the exact or estimated mean for this set.
double ComputeAxisMean(
axis,
Spatial axis.
maxSamples
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

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

ComputeBoundingBox

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

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.
KdTree ComputeKdTree()
k-d tree or null if this sampling set is empty.

ComputeKMeansClusters

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

ComputeKMeansClusters

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

ComputeKMeansClusters

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

ComputeKMeansClusters

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

ComputeMean

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

ComputeMean

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

ComputeMean

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

DistributePoints

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

NormaliseProjection

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

NormaliseProjection

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

NormaliseProjection

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

Point

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

Points

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