twoDimensionalStatistics.h
Go to the documentation of this file.
/* TwoDimensionalStatistics.h
*/
#ifndef _STAT_TWODIMENSIONALSTATISTICS_H
#define _STAT_TWODIMENSIONALSTATISTICS_H
#include <memory>
#include <cstddef>
namespace osl
{
namespace stat
{
class TwoDimensionalStatistics
{
class Data;
std::unique_ptr<Data> m_data;
public:
// CREATORS
TwoDimensionalStatistics();
~TwoDimensionalStatistics();
// MANIPULATORS
void add(const double& x, const double& y);
void merge(const TwoDimensionalStatistics&);
void clear();
// ACCESSORS
double averageX() const;
double averageY() const;
double averageX2() const;
double averageY2() const;
double averageXY() const;
double meanSquaredErrors() const;
double meanSquaredErrorsAdjustConstant() const;
size_t size() const;
double correlation() const;
void fitting(double& a, double& b, double& residual) const;
private:
// NoCopy
TwoDimensionalStatistics(const TwoDimensionalStatistics&);
TwoDimensionalStatistics& operator=(const TwoDimensionalStatistics&);
};
} // namespace stat
} // namespace osl
#endif /* _STAT_TWODIMENSIONALSTATISTICS_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::stat::TwoDimensionalStatistics::Data
Definition twoDimensionalStatistics.cc:8
osl::stat::TwoDimensionalStatistics::averageXY
double averageXY() const
Definition twoDimensionalStatistics.cc:102
osl::stat::TwoDimensionalStatistics::TwoDimensionalStatistics
TwoDimensionalStatistics()
Definition twoDimensionalStatistics.cc:41
osl::stat::TwoDimensionalStatistics::clear
void clear()
Definition twoDimensionalStatistics.cc:64
osl::stat::TwoDimensionalStatistics::m_data
std::unique_ptr< Data > m_data
Definition twoDimensionalStatistics.h:16
osl::stat::TwoDimensionalStatistics::averageX
double averageX() const
Definition twoDimensionalStatistics.cc:78
osl::stat::TwoDimensionalStatistics::meanSquaredErrors
double meanSquaredErrors() const
Definition twoDimensionalStatistics.cc:108
osl::stat::TwoDimensionalStatistics::averageY
double averageY() const
Definition twoDimensionalStatistics.cc:84
osl::stat::TwoDimensionalStatistics::operator=
TwoDimensionalStatistics & operator=(const TwoDimensionalStatistics &)
osl::stat::TwoDimensionalStatistics::averageY2
double averageY2() const
Definition twoDimensionalStatistics.cc:96
osl::stat::TwoDimensionalStatistics::size
size_t size() const
Definition twoDimensionalStatistics.cc:72
osl::stat::TwoDimensionalStatistics::averageX2
double averageX2() const
Definition twoDimensionalStatistics.cc:90
osl::stat::TwoDimensionalStatistics::correlation
double correlation() const
Definition twoDimensionalStatistics.cc:122
osl::stat::TwoDimensionalStatistics::fitting
void fitting(double &a, double &b, double &residual) const
ax + b = y
Definition twoDimensionalStatistics.cc:130
osl::stat::TwoDimensionalStatistics::merge
void merge(const TwoDimensionalStatistics &)
Definition twoDimensionalStatistics.cc:58
osl::stat::TwoDimensionalStatistics::meanSquaredErrorsAdjustConstant
double meanSquaredErrorsAdjustConstant() const
Definition twoDimensionalStatistics.cc:114
osl::stat::TwoDimensionalStatistics::~TwoDimensionalStatistics
~TwoDimensionalStatistics()
Definition twoDimensionalStatistics.cc:46
osl::stat::TwoDimensionalStatistics::add
void add(const double &x, const double &y)
Definition twoDimensionalStatistics.cc:52
osl::stat::TwoDimensionalStatistics::TwoDimensionalStatistics
TwoDimensionalStatistics(const TwoDimensionalStatistics &)
osl::stat
Definition rating/featureSet.h:18
osl
Definition additionalEffect.h:6