Performs the Bartlett test for dimensionality of data.
Parameters |
Description |
Data |
Data to be analyzed. |
NumDim |
Returns the number of dimensions needed to explain the non random variation in data. If NumDim is less than zero, the test cannot be applied to this data. |
SignifVec |
Returns calculated significance probabilities for one, two ... variables (dimensions). |
Alpha |
Desired significance. |
procedure BartlettReport; var NumDim,i: Integer; SignifVec: Vector; Data: Matrix; begin // Bartlett test for dimensionality Data.LoadFromFile('c:tempdata.mtx'); // load test data BartlettTest(Data,NumDim,SignifVec); // Alpha = 5 % // returns NumDim and SignifVec end;
#include "MtxVec.hpp" #include "MtxExpr.hpp" #include "Statistics.hpp" void __fastcall Example() { sMatrix data; sVector signifVec; int numdim; data.LoadFromFile("c:\temp\data.mtx"); // load test data BartlettTest(data, numdim, signifVec,0.05); // Alpha = 5% // returns NumDim and SignifVec }
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|