40 double getSample(
size_t n,
size_t nSamples)
const;
66 bool contains(
const std::string& sVarName)
const;
70 void reset(
const std::string& sDef);
73 void expand(
double perc,
double dMin = -INFINITY);
97 std::vector<mu::value_type>
convert();
98 void setNames(
const std::vector<std::string>& vNames);
This class represents a single interval in code providing reading access functionality.
void expand(double perc, double dMin=-INFINITY)
Expand the interval by the corresponding percentage. The expansion is equally distributed to both end...
void assign(const Interval &ivl)
Assign a interval object to this instance.
Interval combine(const Interval &_ivl) const
Returns the (continous) interval, which contains this and the passed interval.
mu::value_type back() const
Return the last element in the interval.
void refresh()
Referesh the internal interval representation (e.g. after a dependency has been updated).
std::string m_sDefinition
size_t getSamples() const
Returns the number of internal samples. Will return zero, if the internal samples are only interval s...
double getSample(size_t n, size_t nSamples) const
Return the nth sample of the interval using the desired number of samples.
double range() const
Return the real inteval range of this interval.
void reset(const std::string &sDef)
Reset the interval with a new definition.
mu::value_type cmax() const
Return the componentwise maximal element in the interval.
double middle() const
Calculates the middle point of the interval.
bool isInside(mu::value_type val) const
Checks, whether the passed value is part of this interval.
mu::value_type front() const
Return the first element in the interval.
std::vector< double > m_vInterval
Interval & operator=(const Interval &ivl)
Assignment operator overload.
double max() const
Return the maximal element in the interval.
bool contains(const std::string &sVarName) const
Check, whether a variable is part of the interval definition string to detect a possible dependency.
mu::value_type log(size_t n, size_t nSamples=100) const
Return a sample in logarithmic scale.
mu::value_type operator()(size_t n, size_t nSamples=100) const
Parenthesis operator overload.
mu::value_type cmin() const
Return the componentwise minimal element in the interval.
double min() const
Return the minimal element in the interval.
This file contains standard definitions used by the parser.
MUP_BASETYPE value_type
The numeric datatype used by the parser.
Structure for the axes in plots.
This class represents a set of intervals used together for calculations and simulations.
std::vector< mu::value_type > convert()
Convert the new interval data types to the old plain mu::value_type values.
size_t size() const
Return the number of intervals.
void setNames(const std::vector< std::string > &vNames)
Set the interval names.
bool hasDependentIntervals() const
Detect, whether there are intervals, which depend on each other.
std::vector< Interval > intervals
Interval & operator[](size_t n)
Access operator overload.
IntervalSet & operator=(const IntervalSet &ivSet)
Assignment operator overload.
Structure for the horizontal and vertical lines in plots.
Structure for describing time axes in plots.
void activate(const std::string &sFormat="")