snpy/dm15temp/dm15temp_CRB.c
double triweight(double dm15_temp, double center,  double w, double function) {
  double fmin,fmax,wt;
  fmin = center - w/2;  
  fmax = center + w/2;
  if ( (dm15_temp < fmin) || (dm15_temp > fmax) ){
    return 0;
  }
  if( dm15_temp <= center ){
    wt = trifunction(dm15_temp,w,center,0);
    return wt;
  }
  if( dm15_temp > center ){
    wt = trifunction(dm15_temp, w, center, 1);
    return wt;
  }

}
/* 
   Defining the weights under the different weighting functions.
   Only the triangle function is implemented now
*/
Defining the weights under the different weighting functions.
Only the triangle function is implemented now
Defining the weights under the different weighting functions . Only the triangle function is implemented now
double triweight(double dm15_temp, double center,  double w, double function) {
  double fmin,fmax,wt;
  fmin = center - w/2;  
  fmax = center + w/2;
  if ( (dm15_temp < fmin) || (dm15_temp > fmax) ){
    return 0;
  }
  if( dm15_temp <= center ){
    wt = trifunction(dm15_temp,w,center,0);
    return wt;
  }
  if( dm15_temp > center ){
    wt = trifunction(dm15_temp, w, center, 1);
    return wt;
  }
}
double triweight ( double dm15_temp , double center , double w , double function ) { double fmin , fmax , wt ; fmin = center - w / 2 ; fmax = center + w / 2 ; if ( ( dm15_temp < fmin ) || ( dm15_temp > fmax ) ) { return 0 ; } if ( dm15_temp <= center ) { wt = trifunction ( dm15_temp , w , center , 0 ) ; return wt ; } if ( dm15_temp > center ) { wt = trifunction ( dm15_temp , w , center , 1 ) ; return wt ; } }
Defining the weights under the different weighting functions.
Defining the weights under the different weighting functions .