TMtxMDScaling Class

Header: Dew.Stats/StatTools.h · Cross-compiler
tObjectTMtxComponentTMtxMDScaling

class TMtxMDScaling : public TMtxComponent;

Performs multidimensional scaling.

Use TMtxMDScaling component to perform multidimensional scaling on dataset.

How to use TMtxMDScaling component?
1. Drop a TMtxMDScaling component on the form. 2. Set TMtxMDScaling::DataFormat property to define how data will be interpreted. Data can be interpreted as dissimilarities matrix, similarities matrix or raw data matrix. 3. Define TMtxMDScaling::Data, the matrix representing dissimilarities matrix, similarities matrix or raw data.
4. Set TMtxMDScaling::Dimensions to define number of variables in reduced space. 5. Set TMtxMDScaling::DistanceMethod to define how pairwise distance will be calculated. 6. Set TMtxMDScaling::ScalingMethod to define scaling algorithm. Currently only metric (classical) multidimensional scaling algorithm is supported. 7. Call the TMtxMDScaling::Recalc method to trigger calculation.

Results:
1. TMtxMDScaling::Y : Point coordinates in reduced space. 2. TMtxMDScaling::EigenValues : Eigenvalues in reduced space, sorted in descending order. 3. TMtxMDScaling::DHat : Estimated dissimilarities matrix. 4. TMtxMDScaling::Stress : Calculated stress factor.

Constructors

NameDescription
TMtxMDScaling (2)

Destructors

NameDescription
~TMtxMDScaling

Properties

NameTypeDescription
AutoUpdateboolIf true then changing any of the TMtxPCA properties will trigger the TMtxMDScaling::Recalc method.
BlockAssignboolBlock streaming of specific properties when storing only a "template".
DTMtx*Used dissimilarities matrix.
DataTMtx*Data to be analyzed by MDS.
DataFormatTMDDataFormatData format.
DHatTMtx*Estimated dissimilarities matrix.
DimensionsintReduced dimension size.
DirtyboolWhen any of the TMtxMDScaling properties changes, this property is automatically set to true.
DistanceMethodTPWDistMethodMetric for distance calculation.
EditorActiveboolReturns True, if the component editor is displayed.
EigenValuesTVec*Reduced space eigenvalues.
NameDewString
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
ScalingMethodTMDScalingMethodDefines multidimensional scaling algorithm.
StressdoubleReturns multidimensional scaling stress value which is an estimate for GOF.
YTMtx*Reduced space point coordinates.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
EditorClassTo be overriden in descendanr classses.
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
RecalcTriggers MDScalling recalculation.
ReferenceRemoved
ResetReset is called after loading the data from stream or file.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.

Fields

NameTypeDescription
Tagintptr_t