snpy/dm15temp/dm15temp_CRB.c
double width(double center) {
  double delta1, delta3, delta2, f1 , f2, f3, res;
  delta1=0.20;
  delta3=0.35;
  delta2=0;  
  f1=1.0;
  f2=1.4;
  f3=0;
  if(center <= f1) {
    res=delta1;
    return res;
  }
  if( (center > f1) && (center <= f2) ) { 
    delta2 = ((delta3 - delta1)/(f2-f1))*(center - f1) + delta1;
    res = delta2;  
    return res;
  }
  if(center > f2) {
    res=delta3;
    return res;
  }
}
/* 
   The different widths of the triangle function in the dm15 axis are defined. 
   The widths are user defined, depending on the template set, and the 
   coverage (sampling) of dm15 values they have  
*/
The different widths of the triangle function in the dm15 axis are defined.
The widths are user defined, depending on the template set, and the
coverage (sampling) of dm15 values they have
The different widths of the triangle function in the dm15 axis are defined . The widths are user defined depending on the template set and the coverage ( sampling ) of dm15 values they have
double width(double center) {
  double delta1, delta3, delta2, f1 , f2, f3, res;
  delta1=0.20;
  delta3=0.35;
  delta2=0;  
  f1=1.0;
  f2=1.4;
  f3=0;
  if(center <= f1) {
    res=delta1;
    return res;
  }
  if( (center > f1) && (center <= f2) ) { 
    delta2 = ((delta3 - delta1)/(f2-f1))*(center - f1) + delta1;
    res = delta2;  
    return res;
  }
  if(center > f2) {
    res=delta3;
    return res;
  }
}
double width ( double center ) { double delta1 , delta3 , delta2 , f1 , f2 , f3 , res ; delta1 = 0.20 ; delta3 = 0.35 ; delta2 = 0 ; f1 = 1.0 ; f2 = 1.4 ; f3 = 0 ; if ( center <= f1 ) { res = delta1 ; return res ; } if ( ( center > f1 ) && ( center <= f2 ) ) { delta2 = ( ( delta3 - delta1 ) / ( f2 - f1 ) ) * ( center - f1 ) + delta1 ; res = delta2 ; return res ; } if ( center > f2 ) { res = delta3 ; return res ; } }
The different widths of the triangle function in the dm15 axis are defined.
The different widths of the triangle function in the dm15 axis are defined .