aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pca.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-04-10 17:23:38 +0000
committerDiego Biurrun <diego@biurrun.de>2009-04-10 17:23:38 +0000
commit64bde1974be4ab53f5ec468ef8f8c4cf18c27c52 (patch)
tree865f1ec8ddd7b6ba0e0cc224ac4ef0390cd83c03 /libavutil/pca.c
parentee30cdabadc055ae49d9b92e800839b5d8925598 (diff)
downloadffmpeg-64bde1974be4ab53f5ec468ef8f8c4cf18c27c52.tar.gz
cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/pca.c')
-rw-r--r--libavutil/pca.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c
index 09c542bf93..6891026a5b 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;
}*/