tropea_clustering._internal.first_classes.StateMulti

class tropea_clustering._internal.first_classes.StateMulti(mean, sigma, area, r_2, perc=0.0)[source]

Represents a multifimensional state as a factorized Gaussian.

All the parameters and information on the factorized Gaussian states corresponding to the different clusters are stored within this class. The attributes can be acessed using the get_attributes() method.

Parameters:
  • mean (np.ndarray of shape (dim,)) – Mean of the Gaussians.

  • sigma (np.ndarray of shape (dim,)) – Rescaled standard deviation of the Gaussians.

  • area (np.ndarray of shape (dim,)) – Area below the Gaussians.

  • r_2 (float) – Coefficient of determination of the Gaussian fit.

  • perc (float)

perc

Fraction of data points classified in this state.

Type:

float

axis

The thresholds of the state. It contains the axis of the ellipsoid given by the rescaled sigmas of the factorized Gaussian states, multiplied by “number of sigmas”.

Type:

ndarray of shape (dim,)

Methods

get_attributes

Returns a dictionary containing the attributes of the state.

Attributes

perc

mean

sigma

area

r_2

axis

get_attributes()[source]

Returns a dictionary containing the attributes of the state.

Returns:

attr_list

Return type:

dict