src/model/CurveExponentialSkewNormal.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "CurveExponentialSkewNormal.hpp" | ||
| 7 | #include "CurveExponentialSkewNormal_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/IddFactory.hxx> | ||
| 10 | |||
| 11 | #include <utilities/idd/OS_Curve_ExponentialSkewNormal_FieldEnums.hxx> | ||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | |||
| 14 | #include "../utilities/core/Assert.hpp" | ||
| 15 | |||
| 16 | #include <cmath> | ||
| 17 | #include <boost/math/special_functions/erf.hpp> | ||
| 18 | |||
| 19 | using namespace std; | ||
| 20 | |||
| 21 | namespace openstudio { | ||
| 22 | namespace model { | ||
| 23 | |||
| 24 | namespace detail { | ||
| 25 | |||
| 26 | 38 | CurveExponentialSkewNormal_Impl::CurveExponentialSkewNormal_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 27 | 38 | : Curve_Impl(idfObject, model, keepHandle) { | |
| 28 |
4/6✓ Branch 1 taken 38 times.
✓ Branch 4 taken 38 times.
✓ Branch 7 taken 38 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 38 times.
✗ Branch 13 not taken.
|
38 | OS_ASSERT(idfObject.iddObject().type() == CurveExponentialSkewNormal::iddObjectType()); |
| 29 | 38 | } | |
| 30 | |||
| 31 | ✗ | CurveExponentialSkewNormal_Impl::CurveExponentialSkewNormal_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 32 | ✗ | bool keepHandle) | |
| 33 | ✗ | : Curve_Impl(other, model, keepHandle) { | |
| 34 | ✗ | OS_ASSERT(other.iddObject().type() == CurveExponentialSkewNormal::iddObjectType()); | |
| 35 | ✗ | } | |
| 36 | |||
| 37 | 12 | CurveExponentialSkewNormal_Impl::CurveExponentialSkewNormal_Impl(const CurveExponentialSkewNormal_Impl& other, Model_Impl* model, bool keepHandle) | |
| 38 | 12 | : Curve_Impl(other, model, keepHandle) {} | |
| 39 | |||
| 40 | ✗ | const std::vector<std::string>& CurveExponentialSkewNormal_Impl::outputVariableNames() const { | |
| 41 | ✗ | static const std::vector<std::string> result{"Performance Curve Output Value", "Performance Curve Input Variable 1 Value"}; | |
| 42 | ✗ | return result; | |
| 43 | ✗ | } | |
| 44 | |||
| 45 | ✗ | IddObjectType CurveExponentialSkewNormal_Impl::iddObjectType() const { | |
| 46 | ✗ | return CurveExponentialSkewNormal::iddObjectType(); | |
| 47 | } | ||
| 48 | |||
| 49 | ✗ | int CurveExponentialSkewNormal_Impl::numVariables() const { | |
| 50 | ✗ | return 1; | |
| 51 | } | ||
| 52 | |||
| 53 | 8 | double CurveExponentialSkewNormal_Impl::evaluate(const std::vector<double>& independentVariables) const { | |
| 54 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
|
8 | OS_ASSERT(independentVariables.size() == 1u); |
| 55 | |||
| 56 | 8 | double x = independentVariables[0]; | |
| 57 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 2 taken 6 times.
|
8 | if (x < minimumValueofx()) { |
| 58 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
2 | LOG(Warn, "Supplied x is below the minimumValueofx, resetting it."); |
| 59 | 2 | x = minimumValueofx(); | |
| 60 | } | ||
| 61 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 2 taken 6 times.
|
8 | if (x > maximumValueofx()) { |
| 62 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
2 | LOG(Warn, "Supplied x is above the maximumValueofx, resetting it."); |
| 63 | 2 | x = maximumValueofx(); | |
| 64 | } | ||
| 65 | |||
| 66 | 8 | double z1 = (x - coefficient1C1()) / coefficient2C2(); | |
| 67 | 8 | double z2 = (coefficient4C4() * x * std::exp(coefficient3C3() * x) - coefficient1C1()) / coefficient2C2(); | |
| 68 | 8 | double z3 = -coefficient1C1() / coefficient2C2(); | |
| 69 | 8 | double numerator = 1.0 + (z2 / std::abs(z2)) * boost::math::erf<double>(std::abs(z2) / std::sqrt(2.0)); | |
| 70 | 8 | numerator *= std::exp(-0.5 * std::pow(z1, 2)); | |
| 71 | 8 | double denominator = 1.0 + (z3 / std::abs(z3)) * boost::math::erf<double>(std::abs(z3) / std::sqrt(2.0)); | |
| 72 | 8 | denominator *= std::exp(-0.5 * std::pow(z3, 2)); | |
| 73 | 8 | double result = numerator / denominator; | |
| 74 | |||
| 75 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 6 times.
|
16 | if (boost::optional<double> _minVal = minimumCurveOutput()) { |
| 76 |
1/1✓ Branch 1 taken 2 times.
|
2 | double minVal = _minVal.get(); |
| 77 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (result < minVal) { |
| 78 |
5/5✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
|
1 | LOG(Warn, "Calculated curve output is below minimumCurveOutput, resetting it."); |
| 79 | 1 | result = minVal; | |
| 80 | } | ||
| 81 | } | ||
| 82 | |||
| 83 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 6 times.
|
16 | if (boost::optional<double> _maxVal = maximumCurveOutput()) { |
| 84 |
1/1✓ Branch 1 taken 2 times.
|
2 | double maxVal = _maxVal.get(); |
| 85 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (result > maxVal) { |
| 86 |
5/5✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
|
1 | LOG(Warn, "Calculated curve output is above maximumCurveOutput, resetting it."); |
| 87 | 1 | result = maxVal; | |
| 88 | } | ||
| 89 | } | ||
| 90 | |||
| 91 | 8 | return result; | |
| 92 | } | ||
| 93 | |||
| 94 | 38 | double CurveExponentialSkewNormal_Impl::coefficient1C1() const { | |
| 95 |
1/1✓ Branch 1 taken 38 times.
|
38 | boost::optional<double> value = getDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient1C1, true); |
| 96 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 38 times.
✗ Branch 4 not taken.
|
38 | OS_ASSERT(value); |
| 97 |
1/1✓ Branch 1 taken 38 times.
|
76 | return value.get(); |
| 98 | } | ||
| 99 | |||
| 100 | 38 | double CurveExponentialSkewNormal_Impl::coefficient2C2() const { | |
| 101 |
1/1✓ Branch 1 taken 38 times.
|
38 | boost::optional<double> value = getDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient2C2, true); |
| 102 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 38 times.
✗ Branch 4 not taken.
|
38 | OS_ASSERT(value); |
| 103 |
1/1✓ Branch 1 taken 38 times.
|
76 | return value.get(); |
| 104 | } | ||
| 105 | |||
| 106 | 22 | double CurveExponentialSkewNormal_Impl::coefficient3C3() const { | |
| 107 |
1/1✓ Branch 1 taken 22 times.
|
22 | boost::optional<double> value = getDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient3C3, true); |
| 108 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
✗ Branch 4 not taken.
|
22 | OS_ASSERT(value); |
| 109 |
1/1✓ Branch 1 taken 22 times.
|
44 | return value.get(); |
| 110 | } | ||
| 111 | |||
| 112 | 22 | double CurveExponentialSkewNormal_Impl::coefficient4C4() const { | |
| 113 |
1/1✓ Branch 1 taken 22 times.
|
22 | boost::optional<double> value = getDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient4C4, true); |
| 114 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 22 times.
✗ Branch 4 not taken.
|
22 | OS_ASSERT(value); |
| 115 |
1/1✓ Branch 1 taken 22 times.
|
44 | return value.get(); |
| 116 | } | ||
| 117 | |||
| 118 | 24 | double CurveExponentialSkewNormal_Impl::minimumValueofx() const { | |
| 119 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<double> value = getDouble(OS_Curve_ExponentialSkewNormalFields::MinimumValueofx, true); |
| 120 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
|
24 | OS_ASSERT(value); |
| 121 |
1/1✓ Branch 1 taken 24 times.
|
48 | return value.get(); |
| 122 | } | ||
| 123 | |||
| 124 | 24 | double CurveExponentialSkewNormal_Impl::maximumValueofx() const { | |
| 125 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<double> value = getDouble(OS_Curve_ExponentialSkewNormalFields::MaximumValueofx, true); |
| 126 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
|
24 | OS_ASSERT(value); |
| 127 |
1/1✓ Branch 1 taken 24 times.
|
48 | return value.get(); |
| 128 | } | ||
| 129 | |||
| 130 | 23 | boost::optional<double> CurveExponentialSkewNormal_Impl::minimumCurveOutput() const { | |
| 131 | 23 | return getDouble(OS_Curve_ExponentialSkewNormalFields::MinimumCurveOutput, true); | |
| 132 | } | ||
| 133 | |||
| 134 | 23 | boost::optional<double> CurveExponentialSkewNormal_Impl::maximumCurveOutput() const { | |
| 135 | 23 | return getDouble(OS_Curve_ExponentialSkewNormalFields::MaximumCurveOutput, true); | |
| 136 | } | ||
| 137 | |||
| 138 | ✗ | std::string CurveExponentialSkewNormal_Impl::inputUnitTypeforx() const { | |
| 139 | ✗ | boost::optional<std::string> value = getString(OS_Curve_ExponentialSkewNormalFields::InputUnitTypeforx, true); | |
| 140 | ✗ | OS_ASSERT(value); | |
| 141 | ✗ | return value.get(); | |
| 142 | ✗ | } | |
| 143 | |||
| 144 | 12 | bool CurveExponentialSkewNormal_Impl::isInputUnitTypeforxDefaulted() const { | |
| 145 | 12 | return isEmpty(OS_Curve_ExponentialSkewNormalFields::InputUnitTypeforx); | |
| 146 | } | ||
| 147 | |||
| 148 | ✗ | std::string CurveExponentialSkewNormal_Impl::outputUnitType() const { | |
| 149 | ✗ | boost::optional<std::string> value = getString(OS_Curve_ExponentialSkewNormalFields::OutputUnitType, true); | |
| 150 | ✗ | OS_ASSERT(value); | |
| 151 | ✗ | return value.get(); | |
| 152 | ✗ | } | |
| 153 | |||
| 154 | 12 | bool CurveExponentialSkewNormal_Impl::isOutputUnitTypeDefaulted() const { | |
| 155 | 12 | return isEmpty(OS_Curve_ExponentialSkewNormalFields::OutputUnitType); | |
| 156 | } | ||
| 157 | |||
| 158 | 31 | bool CurveExponentialSkewNormal_Impl::setCoefficient1C1(double coefficient1C1) { | |
| 159 | 31 | bool result = setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient1C1, coefficient1C1); | |
| 160 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 161 | 31 | return result; | |
| 162 | } | ||
| 163 | |||
| 164 | 31 | bool CurveExponentialSkewNormal_Impl::setCoefficient2C2(double coefficient2C2) { | |
| 165 | 31 | bool result = setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient2C2, coefficient2C2); | |
| 166 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 167 | 31 | return result; | |
| 168 | } | ||
| 169 | |||
| 170 | 31 | bool CurveExponentialSkewNormal_Impl::setCoefficient3C3(double coefficient3C3) { | |
| 171 | 31 | bool result = setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient3C3, coefficient3C3); | |
| 172 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 173 | 31 | return result; | |
| 174 | } | ||
| 175 | |||
| 176 | 31 | bool CurveExponentialSkewNormal_Impl::setCoefficient4C4(double coefficient4C4) { | |
| 177 | 31 | bool result = setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient4C4, coefficient4C4); | |
| 178 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 179 | 31 | return result; | |
| 180 | } | ||
| 181 | |||
| 182 | 31 | bool CurveExponentialSkewNormal_Impl::setMinimumValueofx(double minimumValueofx) { | |
| 183 | 31 | bool result = setDouble(OS_Curve_ExponentialSkewNormalFields::MinimumValueofx, minimumValueofx); | |
| 184 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 185 | 31 | return result; | |
| 186 | } | ||
| 187 | |||
| 188 | 31 | bool CurveExponentialSkewNormal_Impl::setMaximumValueofx(double maximumValueofx) { | |
| 189 | 31 | bool result = setDouble(OS_Curve_ExponentialSkewNormalFields::MaximumValueofx, maximumValueofx); | |
| 190 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 191 | 31 | return result; | |
| 192 | } | ||
| 193 | |||
| 194 | 31 | bool CurveExponentialSkewNormal_Impl::setMinimumCurveOutput(boost::optional<double> minimumCurveOutput) { | |
| 195 | 31 | bool result = false; | |
| 196 |
1/2✓ Branch 0 taken 31 times.
✗ Branch 1 not taken.
|
31 | if (minimumCurveOutput) { |
| 197 | 31 | result = setDouble(OS_Curve_ExponentialSkewNormalFields::MinimumCurveOutput, minimumCurveOutput.get()); | |
| 198 | } else { | ||
| 199 | ✗ | result = setString(OS_Curve_ExponentialSkewNormalFields::MinimumCurveOutput, ""); | |
| 200 | } | ||
| 201 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 202 | 31 | return result; | |
| 203 | } | ||
| 204 | |||
| 205 | ✗ | void CurveExponentialSkewNormal_Impl::resetMinimumCurveOutput() { | |
| 206 | ✗ | bool result = setString(OS_Curve_ExponentialSkewNormalFields::MinimumCurveOutput, ""); | |
| 207 | ✗ | OS_ASSERT(result); | |
| 208 | ✗ | } | |
| 209 | |||
| 210 | 31 | bool CurveExponentialSkewNormal_Impl::setMaximumCurveOutput(boost::optional<double> maximumCurveOutput) { | |
| 211 | 31 | bool result = false; | |
| 212 |
1/2✓ Branch 0 taken 31 times.
✗ Branch 1 not taken.
|
31 | if (maximumCurveOutput) { |
| 213 | 31 | result = setDouble(OS_Curve_ExponentialSkewNormalFields::MaximumCurveOutput, maximumCurveOutput.get()); | |
| 214 | } else { | ||
| 215 | ✗ | result = setString(OS_Curve_ExponentialSkewNormalFields::MaximumCurveOutput, ""); | |
| 216 | } | ||
| 217 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 218 | 31 | return result; | |
| 219 | } | ||
| 220 | |||
| 221 | ✗ | void CurveExponentialSkewNormal_Impl::resetMaximumCurveOutput() { | |
| 222 | ✗ | bool result = setString(OS_Curve_ExponentialSkewNormalFields::MaximumCurveOutput, ""); | |
| 223 | ✗ | OS_ASSERT(result); | |
| 224 | ✗ | } | |
| 225 | |||
| 226 | ✗ | bool CurveExponentialSkewNormal_Impl::setInputUnitTypeforx(const std::string& inputUnitTypeforx) { | |
| 227 | ✗ | bool result = setString(OS_Curve_ExponentialSkewNormalFields::InputUnitTypeforx, inputUnitTypeforx); | |
| 228 | ✗ | return result; | |
| 229 | } | ||
| 230 | |||
| 231 | ✗ | void CurveExponentialSkewNormal_Impl::resetInputUnitTypeforx() { | |
| 232 | ✗ | bool result = setString(OS_Curve_ExponentialSkewNormalFields::InputUnitTypeforx, ""); | |
| 233 | ✗ | OS_ASSERT(result); | |
| 234 | ✗ | } | |
| 235 | |||
| 236 | ✗ | bool CurveExponentialSkewNormal_Impl::setOutputUnitType(const std::string& outputUnitType) { | |
| 237 | ✗ | bool result = setString(OS_Curve_ExponentialSkewNormalFields::OutputUnitType, outputUnitType); | |
| 238 | ✗ | return result; | |
| 239 | } | ||
| 240 | |||
| 241 | ✗ | void CurveExponentialSkewNormal_Impl::resetOutputUnitType() { | |
| 242 | ✗ | bool result = setString(OS_Curve_ExponentialSkewNormalFields::OutputUnitType, ""); | |
| 243 | ✗ | OS_ASSERT(result); | |
| 244 | ✗ | } | |
| 245 | |||
| 246 | } // namespace detail | ||
| 247 | |||
| 248 | 38 | CurveExponentialSkewNormal::CurveExponentialSkewNormal(const Model& model) : Curve(CurveExponentialSkewNormal::iddObjectType(), model) { | |
| 249 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 38 times.
✗ Branch 5 not taken.
|
38 | OS_ASSERT(getImpl<detail::CurveExponentialSkewNormal_Impl>()); |
| 250 |
1/1✓ Branch 1 taken 38 times.
|
38 | setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient1C1, 1.0); |
| 251 |
1/1✓ Branch 1 taken 38 times.
|
38 | setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient2C2, 1.0); |
| 252 |
1/1✓ Branch 1 taken 38 times.
|
38 | setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient3C3, -1.0); |
| 253 |
1/1✓ Branch 1 taken 38 times.
|
38 | setDouble(OS_Curve_ExponentialSkewNormalFields::Coefficient4C4, 1.0); |
| 254 |
1/1✓ Branch 1 taken 38 times.
|
38 | setDouble(OS_Curve_ExponentialSkewNormalFields::MinimumValueofx, -1.0); |
| 255 |
1/1✓ Branch 1 taken 38 times.
|
38 | setDouble(OS_Curve_ExponentialSkewNormalFields::MaximumValueofx, 1.0); |
| 256 | 38 | } | |
| 257 | |||
| 258 | 7675 | IddObjectType CurveExponentialSkewNormal::iddObjectType() { | |
| 259 |
1/1✓ Branch 1 taken 7675 times.
|
7675 | IddObjectType result(IddObjectType::OS_Curve_ExponentialSkewNormal); |
| 260 | 7675 | return result; | |
| 261 | } | ||
| 262 | |||
| 263 | ✗ | std::vector<std::string> CurveExponentialSkewNormal::validInputUnitTypeforxValues() { | |
| 264 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Curve_ExponentialSkewNormalFields::InputUnitTypeforx); | |
| 265 | } | ||
| 266 | |||
| 267 | ✗ | std::vector<std::string> CurveExponentialSkewNormal::validOutputUnitTypeValues() { | |
| 268 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Curve_ExponentialSkewNormalFields::OutputUnitType); | |
| 269 | } | ||
| 270 | |||
| 271 | 14 | double CurveExponentialSkewNormal::coefficient1C1() const { | |
| 272 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->coefficient1C1(); |
| 273 | } | ||
| 274 | |||
| 275 | 14 | double CurveExponentialSkewNormal::coefficient2C2() const { | |
| 276 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->coefficient2C2(); |
| 277 | } | ||
| 278 | |||
| 279 | 14 | double CurveExponentialSkewNormal::coefficient3C3() const { | |
| 280 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->coefficient3C3(); |
| 281 | } | ||
| 282 | |||
| 283 | 14 | double CurveExponentialSkewNormal::coefficient4C4() const { | |
| 284 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->coefficient4C4(); |
| 285 | } | ||
| 286 | |||
| 287 | 14 | double CurveExponentialSkewNormal::minimumValueofx() const { | |
| 288 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->minimumValueofx(); |
| 289 | } | ||
| 290 | |||
| 291 | 14 | double CurveExponentialSkewNormal::maximumValueofx() const { | |
| 292 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->maximumValueofx(); |
| 293 | } | ||
| 294 | |||
| 295 | 15 | boost::optional<double> CurveExponentialSkewNormal::minimumCurveOutput() const { | |
| 296 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->minimumCurveOutput(); |
| 297 | } | ||
| 298 | |||
| 299 | 15 | boost::optional<double> CurveExponentialSkewNormal::maximumCurveOutput() const { | |
| 300 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->maximumCurveOutput(); |
| 301 | } | ||
| 302 | |||
| 303 | ✗ | std::string CurveExponentialSkewNormal::inputUnitTypeforx() const { | |
| 304 | ✗ | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->inputUnitTypeforx(); | |
| 305 | } | ||
| 306 | |||
| 307 | 12 | bool CurveExponentialSkewNormal::isInputUnitTypeforxDefaulted() const { | |
| 308 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->isInputUnitTypeforxDefaulted(); |
| 309 | } | ||
| 310 | |||
| 311 | ✗ | std::string CurveExponentialSkewNormal::outputUnitType() const { | |
| 312 | ✗ | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->outputUnitType(); | |
| 313 | } | ||
| 314 | |||
| 315 | 12 | bool CurveExponentialSkewNormal::isOutputUnitTypeDefaulted() const { | |
| 316 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->isOutputUnitTypeDefaulted(); |
| 317 | } | ||
| 318 | |||
| 319 | 31 | bool CurveExponentialSkewNormal::setCoefficient1C1(double coefficient1C1) { | |
| 320 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setCoefficient1C1(coefficient1C1); |
| 321 | } | ||
| 322 | |||
| 323 | 31 | bool CurveExponentialSkewNormal::setCoefficient2C2(double coefficient2C2) { | |
| 324 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setCoefficient2C2(coefficient2C2); |
| 325 | } | ||
| 326 | |||
| 327 | 31 | bool CurveExponentialSkewNormal::setCoefficient3C3(double coefficient3C3) { | |
| 328 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setCoefficient3C3(coefficient3C3); |
| 329 | } | ||
| 330 | |||
| 331 | 31 | bool CurveExponentialSkewNormal::setCoefficient4C4(double coefficient4C4) { | |
| 332 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setCoefficient4C4(coefficient4C4); |
| 333 | } | ||
| 334 | |||
| 335 | 31 | bool CurveExponentialSkewNormal::setMinimumValueofx(double minimumValueofx) { | |
| 336 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setMinimumValueofx(minimumValueofx); |
| 337 | } | ||
| 338 | |||
| 339 | 31 | bool CurveExponentialSkewNormal::setMaximumValueofx(double maximumValueofx) { | |
| 340 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setMaximumValueofx(maximumValueofx); |
| 341 | } | ||
| 342 | |||
| 343 | 31 | bool CurveExponentialSkewNormal::setMinimumCurveOutput(double minimumCurveOutput) { | |
| 344 |
2/2✓ Branch 3 taken 31 times.
✓ Branch 6 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setMinimumCurveOutput(minimumCurveOutput); |
| 345 | } | ||
| 346 | |||
| 347 | ✗ | void CurveExponentialSkewNormal::resetMinimumCurveOutput() { | |
| 348 | ✗ | getImpl<detail::CurveExponentialSkewNormal_Impl>()->resetMinimumCurveOutput(); | |
| 349 | ✗ | } | |
| 350 | |||
| 351 | 31 | bool CurveExponentialSkewNormal::setMaximumCurveOutput(double maximumCurveOutput) { | |
| 352 |
2/2✓ Branch 3 taken 31 times.
✓ Branch 6 taken 31 times.
|
31 | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setMaximumCurveOutput(maximumCurveOutput); |
| 353 | } | ||
| 354 | |||
| 355 | ✗ | void CurveExponentialSkewNormal::resetMaximumCurveOutput() { | |
| 356 | ✗ | getImpl<detail::CurveExponentialSkewNormal_Impl>()->resetMaximumCurveOutput(); | |
| 357 | ✗ | } | |
| 358 | |||
| 359 | ✗ | bool CurveExponentialSkewNormal::setInputUnitTypeforx(const std::string& inputUnitTypeforx) { | |
| 360 | ✗ | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setInputUnitTypeforx(inputUnitTypeforx); | |
| 361 | } | ||
| 362 | |||
| 363 | ✗ | void CurveExponentialSkewNormal::resetInputUnitTypeforx() { | |
| 364 | ✗ | getImpl<detail::CurveExponentialSkewNormal_Impl>()->resetInputUnitTypeforx(); | |
| 365 | ✗ | } | |
| 366 | |||
| 367 | ✗ | bool CurveExponentialSkewNormal::setOutputUnitType(const std::string& outputUnitType) { | |
| 368 | ✗ | return getImpl<detail::CurveExponentialSkewNormal_Impl>()->setOutputUnitType(outputUnitType); | |
| 369 | } | ||
| 370 | |||
| 371 | ✗ | void CurveExponentialSkewNormal::resetOutputUnitType() { | |
| 372 | ✗ | getImpl<detail::CurveExponentialSkewNormal_Impl>()->resetOutputUnitType(); | |
| 373 | ✗ | } | |
| 374 | |||
| 375 | /// @cond | ||
| 376 |
1/1✓ Branch 3 taken 12 times.
|
12 | CurveExponentialSkewNormal::CurveExponentialSkewNormal(std::shared_ptr<detail::CurveExponentialSkewNormal_Impl> impl) : Curve(std::move(impl)) {} |
| 377 | /// @endcond | ||
| 378 | |||
| 379 | } // namespace model | ||
| 380 | } // namespace openstudio | ||
| 381 |