pca.c File Reference

principal component analysis (PCA) More...

#include "common.h"
#include "pca.h"
Include dependency graph for pca.c:

Go to the source code of this file.

Data Structures

struct  PCA
 

Macros

#define ROTATE(a, i, j, k, l)
 

Typedefs

typedef struct PCA PCA
 

Functions

PCAff_pca_init (int n)
 
void ff_pca_free (PCA *pca)
 
void ff_pca_add (PCA *pca, double *v)
 
int ff_pca (PCA *pca, double *eigenvector, double *eigenvalue)
 

Detailed Description

principal component analysis (PCA)

Definition in file pca.c.

Macro Definition Documentation

#define ROTATE (   a,
  i,
  j,
  k,
 
)
Value:
{\
double g=a[j + i*n];\
double h=a[l + k*n];\
a[j + i*n]=g-s*(h+g*tau);\
a[l + k*n]=h+s*(g-h*tau); }
const char * s
Definition: avisynth_c.h:668
FFT buffer for g
Definition: stft_peak.m:17
for k
synthesis window for stochastic i

Referenced by ff_pca().

Typedef Documentation

typedef struct PCA PCA

Function Documentation

int ff_pca ( PCA pca,
double *  eigenvector,
double *  eigenvalue 
)

Definition at line 72 of file pca.c.

Referenced by ff_pca().

void ff_pca_add ( PCA pca,
double *  v 
)

Definition at line 60 of file pca.c.

Referenced by ff_pca().

void ff_pca_free ( PCA pca)

Definition at line 53 of file pca.c.

PCA* ff_pca_init ( int  n)

Definition at line 38 of file pca.c.

Referenced by ff_pca().