diff options
Diffstat (limited to 'libavutil/pca.c')
-rw-r--r-- | libavutil/pca.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c index 09c542b..6891026 100644 --- a/libavutil/pca.c +++ b/libavutil/pca.c @@ -174,18 +174,18 @@ int main(void){ #define LEN 8 double eigenvector[LEN*LEN]; double eigenvalue[LEN]; - AVLFG prn; + AVLFG prng; - av_lfg_init(&prn, 1); + av_lfg_init(&prng, 1); pca= ff_pca_init(LEN); for(i=0; i<9000000; i++){ double v[2*LEN+100]; double sum=0; - int pos = av_lfg_get(&prn) % LEN; - int v2 = av_lfg_get(&prn) % 101 - 50; - v[0] = av_lfg_get(&prn) % 101 - 50; + int pos = av_lfg_get(&prng) % LEN; + int v2 = av_lfg_get(&prng) % 101 - 50; + v[0] = av_lfg_get(&prng) % 101 - 50; for(j=1; j<8; j++){ if(j<=pos) v[j]= v[0]; else v[j]= v2; @@ -194,7 +194,7 @@ int main(void){ /* for(j=0; j<LEN; j++){ v[j] -= v[pos]; }*/ -// sum += av_lfg_get(&prn) % 10; +// sum += av_lfg_get(&prng) % 10; /* for(j=0; j<LEN; j++){ v[j] -= sum/LEN; }*/ |