HSICStat¶
- class HSICStat(*args)¶
Base class of HSICStat.
Notes
This is a base class for the implementation of an HSIC statistic but cannot be used by itself. An HSIC statistic object can created by using the derived classes:
HSICUStat
andHSICVStat
.Methods
computeHSICIndex
(inSample, outSample, ...)Compute the HSIC index between two samples.
computePValue
(dist, n, HSIC_obs, mHSIC)Compute the p-value of the statistic.
Accessor to the object's name.
getId
()Accessor to the object's id.
Accessor to the underlying implementation.
getName
()Accessor to the object's name.
Indicate the compatibility with a conditional HSIC estimator.
setName
(name)Accessor to the object's name.
- __init__(*args)¶
- computeHSICIndex(inSample, outSample, inCovariance, outCovariance, weightMatrix)¶
Compute the HSIC index between two samples.
- Parameters
- inSample2-d sequence of float
Input sample.
- outSample2-d sequence of float
Output sample.
- inCovariance
CovarianceModel
The covariance model associated with the input sample.
- outCovariance
CovarianceModel
The covariance model associated with the output sample.
- weightMatrix
Matrix
A weight matrix used for the statistic.
- Returns
- hsicIndexthe HSIC index of the two
Sample
.
- hsicIndexthe HSIC index of the two
- computePValue(dist, n, HSIC_obs, mHSIC)¶
Compute the p-value of the statistic.
- getClassName()¶
Accessor to the object’s name.
- Returns
- class_namestr
The object class name (object.__class__.__name__).
- getId()¶
Accessor to the object’s id.
- Returns
- idint
Internal unique identifier.
- getImplementation()¶
Accessor to the underlying implementation.
- Returns
- implImplementation
A copy of the underlying implementation object.
- getName()¶
Accessor to the object’s name.
- Returns
- namestr
The name of the object.
- isCompatibleWithConditionalAnalysis()¶
Indicate the compatibility with a conditional HSIC estimator.
- Returns
- isCompatiblebool
Indicate the compatibility with a conditional HSIC estimator.
- setName(name)¶
Accessor to the object’s name.
- Parameters
- namestr
The name of the object.