Lines Matching refs:factors
474 void ComputeFactorValue(const string &unit, const string &measSys, vector<double> &factors) in ComputeFactorValue() argument
478 factors[0] = CONVERT_FACTORS.at(unitKey)[0]; in ComputeFactorValue()
479 factors[1] = CONVERT_FACTORS.at(unitKey)[1]; in ComputeFactorValue()
483 factors[0] = CONVERT_FACTORS.at(unit)[0]; in ComputeFactorValue()
484 factors[1] = CONVERT_FACTORS.at(unit)[1]; in ComputeFactorValue()
498 void ComputePowerValue(const string &unit, const string &measSys, vector<double> &factors) in ComputePowerValue() argument
506 ComputeFactorValue(baseUnit, measSys, factors); in ComputePowerValue()
508 factors[0] = pow(factors[0], powerValue.second); in ComputePowerValue()
513 int ComputeValue(const string &unit, const string &measSys, vector<double> &factors) in ComputeValue() argument
529 factors[0] = numerator[0] / denominator[0]; in ComputeValue()
534 factors[0] = ComputeSIPrefixValue(unit); in ComputeValue()
535 if (fabs(factors[0] - compare) < 1e-6) { in ComputeValue()
536 ComputePowerValue(unit, measSys, factors); in ComputeValue()
538 if (fabs(factors[0] - compare) < 1e-6) { in ComputeValue()
539 ComputeFactorValue(unit, measSys, factors); in ComputeValue()
541 if (fabs(factors[0] - compare) < 1e-6) { in ComputeValue()
542 factors[0] = 1.0; in ComputeValue()