/usr/include/osl/stat/twoDimensionalStatistics.h is in libosl-dev 0.6.0-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /* TwoDimensionalStatistics.h
*/
#ifndef _STAT_TWODIMENSIONALSTATISTICS_H
#define _STAT_TWODIMENSIONALSTATISTICS_H
#include <boost/scoped_ptr.hpp>
#include <cstddef>
namespace osl
{
namespace stat
{
class TwoDimensionalStatistics
{
class Data;
boost::scoped_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;
/** ax + b = y */
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:
|