Properties
Indexers
Methods
ComputeAxisDomain
#Compute the domain and average of all samples along some axis.
Parameters:
| 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. |
Returns: 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.
ComputeAxisMean
#Compute the exact or estimated mean for this set.
Parameters:
| 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. |
Returns: Computed mean along given axis.
ComputeAxisMean
#Compute the exact or estimated mean for this set.
ComputeBoundingBox
#Compute the bounding box for a subset of samples.
Parameters:
| indices (IEnumerable<int>) | Indices to include. |
Returns: 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.
Returns: k-d tree or null if this sampling set is empty.
ComputeKMeansClusters
#Compute a distribution of k-means clusters.
Parameters:
| count (int) | Number of clusters to compute. |
| callback (KMeansIteration) | Callback method. |
Returns: Array of clusters.
ComputeKMeansClusters
#Compute a distribution of k-means clusters.
Parameters:
| count (int) | Number of clusters to compute. |
Returns: Array of clusters.
ComputeKMeansClusters
#Compute a distribution of k-means clusters.
Parameters:
| initialMeans (PointN[]) | Number of clusters to compute. |
| callback (KMeansIteration) | Callback method. |
Returns: Array of clusters.
ComputeKMeansClusters
#Compute a distribution of k-means clusters.
Parameters:
| initialMeans (PointN[]) | Number of clusters to compute. |
Returns: Array of clusters.
ComputeMean
#Compute the exact or estimated mean for this set.
ComputeMean
#Compute the exact or estimated mean for this set.
Parameters:
| indices (int[]) | Set of sample indices to take into account. |
Returns: Computed mean.
DistributePoints
#Randomly distribute N points within the space. This method performs pretty poorly when 'count' is large.
NormaliseProjection
#Normalise the entire projection to a hypercube of a specific size.
Parameters:
| size (double) | Edge length of hypercube. |