Click or drag to resize

Cloud Class

Represents a collection of weighted multi-dimensional points, whose coordinates are taken with respect to a given basis.
Inheritance Hierarchy
SystemObject
  Novacta.Analytics.AdvancedCloud

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public class Cloud

The Cloud type exposes the following members.

Constructors
  NameDescription
Public methodCloud(DoubleMatrix)
Initializes a new instance of the Cloud class that contains points whose coordinates are taken with respect to the standard basis. To each point is assigned a weight equal to the reciprocal of the number of points.
Public methodCloud(DoubleMatrix, DoubleMatrix)
Initializes a new instance of the Cloud class that contains points having the specified weights and whose coordinates are taken with respect to the standard basis.
Public methodCloud(DoubleMatrix, DoubleMatrix, Basis)
Initializes a new instance of the Cloud class that contains points having the specified weights and whose coordinates are taken with respect to the given basis.
Public methodCloud(DoubleMatrix, DoubleMatrix, Basis, Boolean)
Initializes a new instance of the Cloud class that contains points having the specified weights and whose coordinates are taken with respect to the given basis, with coordinates and weights eventually copied before instantiation.
Top
Properties
  NameDescription
Public propertyBasis
Gets the basis of the cloud.
Public propertyCoordinates
Gets the coordinates of the cloud points.
Public propertyCovariance
Gets the covariance matrix of the active variables in the Cloud.
Public propertyMean
Gets the mean coordinates of the Cloud with respect to its Basis.
Public propertyVariance
Gets the variance of the points represented in the Cloud.
Public propertyWeights
Gets the weights of the cloud points.
Top
Methods
  NameDescription
Public methodCenter
Returns a modified Cloud having zero mean coordinates.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPrincipalProjections
Gets the principal projections of this instance.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVariances(DoubleMatrix)
Computes the variances of the specified supplementary variables.
Public methodGetVariances(ReadOnlyDoubleMatrix)
Computes the variances of the specified supplementary variables.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRebase
Returns a Cloud representing the same points of this instance, using coordinates referred to the specified basis.
Public methodStandardize
Returns a standardized Cloud.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Points and variables

Let us consider LaTeX equation points LaTeX equation in LaTeX equation, and assume that a weighting scheme has been imposed to them to control their contributions to the statistical characteristics of their ensemble: that is, a relative weight LaTeX equation is assigned to point LaTeX equation, with LaTeX equation. Such set of weighted points can thus be represented by means of the pair LaTeX equation, referred to as a weighted multidimensional structure where

LaTeX equation

is the LaTeX equation matrix whose LaTeX equation-th row is LaTeX equation, and LaTeX equation is the weighting scheme expressed as a sequence:

LaTeX equation

Given a basis LaTeX equation of LaTeX equation, a structure LaTeX equation can be represented by a cloud, say LaTeX equation, which can be formally defined as the triplet LaTeX equation, where

LaTeX equation

is the coordinates matrix w.r.t. LaTeX equation of the points in LaTeX equation, i.e., its LaTeX equation-th row, LaTeX equation, represents the coordinates of point LaTeX equation.

Given a Cloud instance representing LaTeX equation, you can inspect its Basis, LaTeX equation, the Coordinates of the points LaTeX equation, and their Weights, LaTeX equation.

The mean point of LaTeX equation is the vector LaTeX equation whose LaTeX equation coordinates are given by:

LaTeX equation

Such coordinates are returned by method Mean. The variance of LaTeX equation, say LaTeX equation, is returned by method Variance and defined as follows:

LaTeX equation

where LaTeX equation is the distance induced by basis LaTeX equation.

The columns of LaTeX equation represent the active variables observed at the LaTeX equation points w.r.t. basis LaTeX equation. The covariance matrix of such variables can be defined as follows

LaTeX equation

where

LaTeX equation

Such matrix can be inspected by calling method Covariance.

A variable which is not active is said supplementary. Supplementary variables have as many rows as the number of points in the cloud, while the number of columns is the number of supplementary variables. Their variances can be computed, which means that the weighting scheme of the cloud will be applied.

Cloud modifications

A cloud can be re-based, so that the cloud coordinates are updated to be referable to a new basis. Clouds can also be centered so as to have zero mean coordinates, or standardized by subtracting to each variable its mean and then dividing the difference by its standard deviation.

See Also