libXpertMassCore and libXpertMassGui Developer Documentation
  • libXpertMassCore
  • Generic
  • MsXpS::libXpertMassCore::Math::Generic Class

    class MsXpS::libXpertMassCore::Math::Generic

    The Generic class provides a number of generic features for math calculations. More...

    Header: #include <MsXpS/libXpertMassCore/Math/Generic.hpp>

    Static Public Members

    std::tuple<double, double, double, double> weightedCenterOfMass(const pappso::Trace &input_trace)

    Detailed Description

    Member Function Documentation

    [static] std::tuple<double, double, double, double> Generic::weightedCenterOfMass(const pappso::Trace &input_trace)

    Calculates the weighted center of mass or the curve input_trace.

    The returned tuple has four members:

    If input_trace is empty, the returned tuples has all its members set to 0.0.