cs-pca 1.0.1

Principal Component Analysis

Install-Package cs-pca -Version 1.0.1
dotnet add package cs-pca --version 1.0.1
<PackageReference Include="cs-pca" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cs-pca --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

cs-pca

Principal Component Analysis implemented in C#

Install

Install-Package cs-pca

Usage

The sample codes below shows how to use the library to reduce the number of dimension or reconstruct the original data from the reduced data:

List<double[]> source = GetNormalizedData();
List<double[]> Z; // PCA output 
double variance_retained;
K = 5; // dimension of the Z (note that Z will have K+1 dimensions where the first dimension will be ignored)
PCA.PCADimReducer.CompressData(source, K, out Z, out variance_retained);

// To reconstruct some compressed data point from Z 
List<double[]> compressed_data_point = GetCompressedDataPoints(); // K+1 dimension data points 
List<double[]> uncompressed_data_point = ReconstructData(compressed_data_point, Z);

cs-pca

Principal Component Analysis implemented in C#

Install

Install-Package cs-pca

Usage

The sample codes below shows how to use the library to reduce the number of dimension or reconstruct the original data from the reduced data:

List<double[]> source = GetNormalizedData();
List<double[]> Z; // PCA output 
double variance_retained;
K = 5; // dimension of the Z (note that Z will have K+1 dimensions where the first dimension will be ignored)
PCA.PCADimReducer.CompressData(source, K, out Z, out variance_retained);

// To reconstruct some compressed data point from Z 
List<double[]> compressed_data_point = GetCompressedDataPoints(); // K+1 dimension data points 
List<double[]> uncompressed_data_point = ReconstructData(compressed_data_point, Z);

Release Notes

Principal Component Analysis in .NET 4.6.1

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.0.1 321 4/28/2018