La bibliothèque se documente elle-même · Numérique et optimisation
stzPCA
28 méthodes propres · 5 formes avec extensions, rangées sous leur méthode
la source: base/number/stzPCA.ring(s'ouvre dans un nouvel onglet) · Toutes les classes · La référence du domaine : Numérique et optimisation
Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens
Exemples : 0 viennent des tests de la bibliothèque ; 6 ont été composés à partir de la signature de chaque méthode et exécutés pour cette page, sur un objet neuf, par exemple o1 = new stzPCA([ [1,2] ]). 22 méthodes n'en ont pas encore. Exemples exécutés le 2026-10-03 12:54 dans la bibliothèque au commit 0e72e2e2c.
Méthode
Explication, telle que la source la porte
init
(sans commentaire dans la source : le nom se lit comme une phrase) initaucune extension
NumberOfSamples
(sans commentaire dans la source : le nom se lit comme une phrase) number of samplesaucune extension
exemple composé
o1 = new stzPCA([ [1,2] ]) ? o1.NumberOfSamples() #--> 1composé à partir de la signature, exécuté pour cette page
NumberOfFeatures
(sans commentaire dans la source : le nom se lit comme une phrase) number of featuresaucune extension
exemple composé
o1 = new stzPCA([ [1,2] ]) ? o1.NumberOfFeatures() #--> 2composé à partir de la signature, exécuté pour cette page
Center
THE NAME FORM CARRIES THE SEMANTICS, which is a Softanza law rather than a style: an ACTIVE verb -- Standardize(), Center() -- DOES the thing and returns nothing; the PASSIVE form -- Standardized(), Centered() -- returns the transformed DATA and leaves the object alone; and the Q twin does the thing and returns the object so calls chain. The first version of this class had Standardized() mutating the analysis and returning This, which got both halves wrong at once: a passive name for an active act, and a plain method returning an object where plain methods return data. CENTER each feature on its mean and leave the units alone -- covariance PCA. The features that vary most, in their own units, dominate.QCSXTZZZIBWU
Standardize
CENTER and then divide each feature by its standard deviation -- correlation PCA. Every feature counts equally, whatever it was measured in.QCSXTZZZIBWU
Centered
── and the passive forms, which return the prepared DATA ── The data centered on the column means, original untouched. This is what a covariance PCA actually decomposes, so it is worth being able to look at.aucune extension
exemple composé
o1 = new stzPCA([ [1,2] ]) ? @@( o1.Centered() ) #--> [ [ 0, 0 ] ]composé à partir de la signature, exécuté pour cette page
Standardized
The data centered AND divided by the column standard deviations. What a correlation PCA decomposes.aucune extension
IsStandardized
(sans commentaire dans la source : le nom se lit comme une phrase) is standardizedaucune extension
exemple composé
o1 = new stzPCA([ [1,2] ]) ? o1.IsStandardized() #--> 0composé à partir de la signature, exécuté pour cette page
UseSampleVariance
── the variance convention, from the library's one authority ──QCSXTZZZIBWU
UsePopulationVariance
(sans commentaire dans la source : le nom se lit comme une phrase) use population varianceQCSXTZZZIBWU
UsesSampleVariance
(sans commentaire dans la source : le nom se lit comme une phrase) uses sample varianceaucune extension
exemple composé
o1 = new stzPCA([ [1,2] ]) ? o1.UsesSampleVariance() #--> 1composé à partir de la signature, exécuté pour cette page
Fit
(sans commentaire dans la source : le nom se lit comme une phrase) fitQCSXTZZZIBWU
IsFitted
(sans commentaire dans la source : le nom se lit comme une phrase) is fittedaucune extension
exemple composé
o1 = new stzPCA([ [1,2] ]) ? o1.IsFitted() #--> 0composé à partir de la signature, exécuté pour cette page
NumberOfComponents
(sans commentaire dans la source : le nom se lit comme une phrase) number of componentsaucune extension
Components
The sign is fixed by convention (the largest loading of each component is made positive) because a direction has no preferred sign -- v and -v are the same axis explaining the same variance -- and without a convention two runs can look like they disagree.aussi écrite: Loadingsaucune extension
Scores
The data in component coordinates: row i is sample i, column j its position along component j. Centered by construction, so each column averages zero.aucune extension
SingularValues
(sans commentaire dans la source : le nom se lit comme une phrase) singular valuesaucune extension
ExplainedVariance
How much variance each component accounts for, in the units of the prepared data. These SUM to TotalVariance() -- the decomposition redistributes the variance and cannot create or destroy any.aucune extension
TotalVariance
(sans commentaire dans la source : le nom se lit comme une phrase) total varianceaucune extension
ExplainedVarianceRatio
The same, as fractions of the total. This is the number people quote.aucune extension
CumulativeVarianceRatio
(sans commentaire dans la source : le nom se lit comme une phrase) cumulative variance ratioaucune extension
NumberOfComponentsFor
How many components to keep to retain a given fraction of the variance -- the usual way the number of components is chosen.aucune extension
Mean
The centering that was applied, kept because projecting NEW data needs exactly the same one. Data centered on its own mean lands in a different space.aucune extension
Scale
(sans commentaire dans la source : le nom se lit comme une phrase) scaleaucune extension
Inverse
That identity is checked in the guard, and it is a far stronger statement than any reconstruction number the learned inverses can offer. It says the arithmetic is RIGHT, where they can only say the result looked plausible.aucune extension
Reconstructed
the training rows put through Transform() and back again -- what the analysis retained of the data it was given, which is the picture worth looking at when deciding how many components are enoughaucune extension
Transform
(sans commentaire dans la source : le nom se lit comme une phrase) transformaucune extension
Why
(sans commentaire dans la source : le nom se lit comme une phrase) whyaucune extension

