MultivariatePrincipalComponentAnalysis Method (IReadOnlyListIReadOnlyListDouble) |
Namespace: Meta.Numerics.Statistics
public static PrincipalComponentAnalysis PrincipalComponentAnalysis( this IReadOnlyList<IReadOnlyList<double>> columns )
Exception | Condition |
---|---|
ArgumentNullException | columns or one of its members is . |
DimensionMismatchException | The columns do not all have the same number of entries. |
InsufficientDataException | The number of entries is less than the number of columns. |
ArgumentNullException | columns, or one of the columns in it, is . |
DimensionMismatchException | Not all of the columns in columns have the same length. |
InsufficientDataException | There are fewer rows than columns. |
For background on principal component analysis, see the remarks at PrincipalComponentAnalysis.
Note that the columns argument is column-oriented, i.e. it is a list of columns, not row-oriented, i.e. a list of rows. Either of these would match the method signature, but only column-oriented inputs will produce correct results.