ContRap-Libraries
Namespaces | Functions

histograms.h File Reference

This file is a part of ContRap. More...

#include <vector>
#include "math/mathexports.h"
#include "float.h"

Namespaces

namespace  crp

Functions

CONTRAP_MATH_API RealStepFunction crp::real_histogram (const std::vector< double > &sample, int buckets, double minimum=FLT_MAX, double maximum=-FLT_MAX)
 Computes a histogram from a set of sample values of a real random variable.

Detailed Description

This file is a part of ContRap.

Copyright (c) 2009 Aless Lasaruk

ContRap is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ContRap is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with ContRap. If not, see <http://www.gnu.org/licenses/>.

This file contains the declarations for histogram computation

Author:
Aless Lasaruk