Dependent

class CDependentUnitParameter : public CBaseUnitParameter

Class for dependent unit parameters.

Subclassed by CTDUnitParameter

Public Functions

std::string GetParamName() const

Returns dependent parameter name.

Returns

Dependent parameter name.

std::wstring GetParamUnits() const

Returns dependent parameter units.

Returns

Dependent parameter units.

double GetValueMin() const

Returns minimum allowed value.

Returns

Minimum allowed value.

double GetValueMax() const

Returns maximum allowed value.

Returns

Maximum allowed value.

SInterval GetValueLimits() const

Returns allowed interval for the value.

Returns

Allowed interval for the value.

double GetParamMin() const

Returns minimum allowed dependent parameter.

Returns

Minimum allowed dependent parameter.

double GetParamMax() const

Returns maximum allowed dependent parameter.

Returns

Maximum allowed dependent parameter.

SInterval GetParamLimits() const

Returns allowed interval for the dependent parameter.

Returns

Allowed interval for the dependent parameter.

double GetValue(double _param) const

Returns unit parameter value at given dependent parameter.

Applies data interpolation if necessary.

Parameters

_param – Dependent parameter.

Returns

Value at current dependent parameter.

std::vector<double> GetParams() const

Returns list of all defined dependent parameters.

Returns

List of all defined dependent parameters.

std::vector<double> GetValues() const

Returns list of all defined values.

Returns

List of all defined values.

std::vector<std::pair<double, double>> GetParamValuePairs() const

Returns all defined data as parameter-value pairs.

Returns

All defined data.

size_t Size() const

Returns number of defined dependent values.

Returns

Number of defined dependent values.

bool IsEmpty() const

Checks whether any dependent value is defined.

Returns

Whether any dependent value is defined.

virtual bool IsInBounds() const override

Checks whether all values lay in range [m_valueMin; m_valueMax] and parameters lay in range [m_paramMin; m_paramMax].

Returns

Whether all values and all parameters lay in the allowed interval.

bool HasParam(double _param) const

Checks if a specific parameter is included in data without interpolation.

Parameters

_param – Parameter.

Returns

Dependent parameter.