38 #ifdef CHECK_MEMORY_LEAKS 40 #endif // CHECK_MEMORY_LEAKS 49 :
Distribution(id), myPoints(points), myProbabilitiesAreComputed(false),
50 myInterpolateDist(interpolating) {}
87 for (
int i = 0; i < (int)
myPoints.size() - 1; i++) {
91 SUMOReal amount = minval * width + (maxval - minval) * width / (
SUMOReal) 2.;
96 for (
int i = 0; i < (int)
myPoints.size() - 1; i++) {
103 for (
int i = 0; i < (int)
myPoints.size() - 1; i++) {
107 for (
int i = 0; i < (int)
myPoints.size() - 1; i++) {
A point in 2D or 3D with translation and scaling methods.
SUMOReal getAreaPerc(int index) const
virtual ~Distribution_Points()
Destructor.
bool myProbabilitiesAreComputed
PositionVector myPoints
The list of points that describe the distribution.
Distribution_Points(const std::string &id, const PositionVector &points, bool interpolating=false)
Constructor.
SUMOReal getMax() const
Returns the maximum value of this distribution.
SUMOReal getAreaEnd(int index) const
SUMOReal getAreaBegin(int index) const
std::vector< SUMOReal > myProbabilities