src/ufo/filters/TrackCheckShip.cc
void TrackCheckShip::TrackObservation::calculateThreeObservationValues(
    const TrackObservation& prevObs, const TrackObservation& nextObs,
    bool firstIteration, const TrackCheckShipParameters &options) {
  this->setDistanceAveraged(TrackCheckShip::distance(prevObs, nextObs));
  this->setSpeedAveraged(speedEstimate(prevObs, nextObs, options));
  if (std::min(this->observationStatistics_.distance,
               nextObs.observationStatistics_.distance) >
      options.core.spatialResolution) {
    this->observationStatistics_.angle = angle(prevObs, *this, nextObs);
  }
  if (firstIteration) {
    adjustThreeObservationStatistics();
  }
}
/// Calculates all of the statistics that require three
/// consecutive \p TrackObservations,
/// storing within the middle observation. This includes
/// distance between two alternating observations,
/// speed between these alternating observations (if the middle
/// observation was not recorded), and the
/// angle formed by the three-observation track segment.
/// Calls function to increment track-wise counters based on results.
Calculates all of the statistics that require three
consecutive \p TrackObservations,
storing within the middle observation. This includes
distance between two alternating observations,
speed between these alternating observations (if the middle
observation was not recorded), and the
angle formed by the three-observation track segment.
Calls function to increment track-wise counters based on results.
Calculates all of the statistics that require three consecutive \ p TrackObservations storing within the middle observation . This includes distance between two alternating observations speed between these alternating observations ( if the middle observation was not recorded ) and the angle formed by the three - observation track segment . Calls function to increment track - wise counters based on results .
void TrackCheckShip::TrackObservation::calculateThreeObservationValues(
    const TrackObservation& prevObs, const TrackObservation& nextObs,
    bool firstIteration, const TrackCheckShipParameters &options) {
  this->setDistanceAveraged(TrackCheckShip::distance(prevObs, nextObs));
  this->setSpeedAveraged(speedEstimate(prevObs, nextObs, options));
  if (std::min(this->observationStatistics_.distance,
               nextObs.observationStatistics_.distance) >
      options.core.spatialResolution) {
    this->observationStatistics_.angle = angle(prevObs, *this, nextObs);
  }
  if (firstIteration) {
    adjustThreeObservationStatistics();
  }
}
void TrackCheckShip :: TrackObservation :: calculateThreeObservationValues ( const TrackObservation & prevObs , const TrackObservation & nextObs , bool firstIteration , const TrackCheckShipParameters & options ) { this -> setDistanceAveraged ( TrackCheckShip :: distance ( prevObs , nextObs ) ) ; this -> setSpeedAveraged ( speedEstimate ( prevObs , nextObs , options ) ) ; if ( std :: min ( this -> observationStatistics_ . distance , nextObs . observationStatistics_ . distance ) > options . core . spatialResolution ) { this -> observationStatistics_ . angle = angle ( prevObs , * this , nextObs ) ; } if ( firstIteration ) { adjustThreeObservationStatistics ( ) ; } }
Calculates all of the statistics that require three
consecutive \p TrackObservations,
storing within the middle observation.
Calculates all of the statistics that require three consecutive \ p TrackObservations storing within the middle observation .