Mercurial > hg > pycsalgos
comparison scripts/ABSapprox.py @ 24:c07440417bd8
Print delta and rho
author | nikcleju |
---|---|
date | Wed, 09 Nov 2011 00:15:57 +0000 |
parents | c02eb33d2c54 |
children | dd0e78b5bb13 |
comparison
equal
deleted
inserted
replaced
23:c02eb33d2c54 | 24:c07440417bd8 |
---|---|
82 | 82 |
83 # Generate data and operator | 83 # Generate data and operator |
84 Omega,x0,y,M,realnoise = genData(d,sigma,delta,rho,numvects,SNRdb) | 84 Omega,x0,y,M,realnoise = genData(d,sigma,delta,rho,numvects,SNRdb) |
85 | 85 |
86 # Run algorithms | 86 # Run algorithms |
87 print "***** delta = ",delta," rho = ",rho | |
87 mrelerrN,mrelerrL = runonce(algosN,algosL,Omega,y,lambdas,realnoise,M,x0) | 88 mrelerrN,mrelerrL = runonce(algosN,algosL,Omega,y,lambdas,realnoise,M,x0) |
88 | 89 |
89 for algotuple in algosN: | 90 for algotuple in algosN: |
90 meanmatrix[algotuple[1]][irho,idelta] = 1 - mrelerrN[algotuple[1]] | 91 meanmatrix[algotuple[1]][irho,idelta] = 1 - mrelerrN[algotuple[1]] |
91 if meanmatrix[algotuple[1]][irho,idelta] < 0 or math.isnan(meanmatrix[algotuple[1]][irho,idelta]): | 92 if meanmatrix[algotuple[1]][irho,idelta] < 0 or math.isnan(meanmatrix[algotuple[1]][irho,idelta]): |