Changed everywhere from float to double, even mythenDetectorServer and the standalone files

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@206 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2012-08-02 12:58:08 +00:00
parent 3795dcedfe
commit 5aebcd4888
47 changed files with 615 additions and 611 deletions

View File

@ -161,11 +161,11 @@ int choose_vthresh_and_vtrim(int countlim, int nsigma, int im) {
int *fifodata;
float vthreshmean, vthreshSTDev;
double vthreshmean, vthreshSTDev;
int *thrmi, *thrma;
float c;
float b=BVTRIM;
float a=AVTRIM;
double c;
double b=BVTRIM;
double a=AVTRIM;
int *trim;
int ich, imod, ichan;
int nvalid=0;
@ -439,7 +439,7 @@ int trim_with_level(int countlim, int im) {
int kth_smallest(int *a, int n, int k)
{
register int i,j,l,m ;
register float x ;
register double x ;
l=0 ; m=n-1 ;
while (l<m) {
@ -466,7 +466,7 @@ int ave(int *a, int n)
{
int av=0,i;
for (i=0; i<n; i++)
av=av+((float)*(a+i))/((float)n);
av=av+((double)*(a+i))/((double)n);
return av;
}