src/ccstruct/quspline.cpp
double QSPLINE::step( // find step functions
    double x1,        // between coords
    double x2) {
  int index1, index2; // indices of coords
  double total;       /*total steps */

  index1 = spline_index(x1);
  index2 = spline_index(x2);
  total = 0;
  while (index1 < index2) {
    total += static_cast<double>(quadratics[index1 + 1].y(static_cast<float>(xcoords[index1 + 1])));
    total -= static_cast<double>(quadratics[index1].y(static_cast<float>(xcoords[index1 + 1])));
    index1++; /*next segment */
  }
  return total; /*total steps */
}
/**********************************************************************
 * QSPLINE::step
 *
 * Return the total of the step functions between the given coords.
 **********************************************************************/
:step
Return the total of the step functions between the given coords.
: step Return the total of the step functions between the given coords .
double QSPLINE::step( 
    double x1,        
    double x2) {
  int index1, index2; 
  double total;       
  index1 = spline_index(x1);
  index2 = spline_index(x2);
  total = 0;
  while (index1 < index2) {
    total += static_cast<double>(quadratics[index1 + 1].y(static_cast<float>(xcoords[index1 + 1])));
    total -= static_cast<double>(quadratics[index1].y(static_cast<float>(xcoords[index1 + 1])));
    index1++; 
  }
  return total; 
}
double QSPLINE :: step ( double x1 , double x2 ) { int index1 , index2 ; double total ; index1 = spline_index ( x1 ) ; index2 = spline_index ( x2 ) ; total = 0 ; while ( index1 < index2 ) { total += static_cast < double > ( quadratics [ index1 + 1 ] . y ( static_cast < float > ( xcoords [ index1 + 1 ] ) ) ) ; total -= static_cast < double > ( quadratics [ index1 ] . y ( static_cast < float > ( xcoords [ index1 + 1 ] ) ) ) ; index1 ++ ; } return total ; }
QSPLINE::step
 Return the total of the step functions between the given coords.
QSPLINE :: step Return the total of the step functions between the given coords .
// find step functions // between coords // indices of coords /*total steps */ /*next segment */ /*total steps */