src/libminisyncpp/minisync.cpp
/*
 * Adds a data point to the algorithm and recalculates the drift and offset estimates.
 */
Adds a data point to the algorithm and recalculates the drift and offset estimates.
Adds a data point to the algorithm and recalculates the drift and offset estimates .
void MiniSync::Algorithms::Base::addDataPoint(us_t To, us_t Tb, us_t Tr)
{
    this->addLowPoint(Tb, To);
    this->addHighPoint(Tb, Tr);
    ++this->processed_timestamps;
    if (processed_timestamps > 1)
    {
        this->__recalculateEstimates();
    }
}
void MiniSync :: Algorithms :: Base :: addDataPoint ( us_t To , us_t Tb , us_t Tr ) { this -> addLowPoint ( Tb , To ) ; this -> addHighPoint ( Tb , Tr ) ; ++ this -> processed_timestamps ; if ( processed_timestamps > 1 ) { this -> __recalculateEstimates ( ) ; } }
Adds a data point to the algorithm and recalculates the drift and offset estimates.
Adds a data point to the algorithm and recalculates the drift and offset estimates .
// add points to internal storage //this->low_points.insert(std::make_shared<LowPoint>(Tb, To)); // this->high_points.insert(std::make_shared<HighPoint>(Tb, Tr)); // n_th sample, n >= 1 // pass it on to the specific algorithm // TODO: extract this call from this method?