public void TransformTest3()
{
// Using a linear kernel should be equivalent to standard PCA
IKernel kernel = new Linear();
// Create analysis
KernelPrincipalComponentAnalysis target = new KernelPrincipalComponentAnalysis(data, kernel);
// Compute
target.Compute();
bool thrown = false;
try
{
double[,] actual = target.Transform(data, 11);
}
catch
{
thrown = true;
}
Assert.IsTrue(thrown);
}