Searched refs:prevValue (Results 1 – 4 of 4) sorted by relevance
48 auto& prevValue = details.prevValue; in sensorUpdated() local53 if (!prevValue) in sensorUpdated()55 prevValue = value; in sensorUpdated()59 bool crossedDecreasing = thresholdValue < prevValue && in sensorUpdated()61 bool crossedIncreasing = thresholdValue > prevValue && in sensorUpdated()64 if (!crossedDecreasing && !crossedIncreasing && thresholdValue == prevValue) in sensorUpdated()85 prevDirection = value > prevValue ? numeric::Direction::increasing in sensorUpdated()86 : value < prevValue ? numeric::Direction::decreasing in sensorUpdated()88 prevValue = value; in sensorUpdated()
53 std::optional<double> prevValue = std::nullopt; member
216 auto prevValue = zone.swapCeilingKeyValue(avgValue); in set_ceiling_from_average_sensor_value() local217 if (avgValue != prevValue) in set_ceiling_from_average_sensor_value()219 if (avgValue < prevValue) in set_ceiling_from_average_sensor_value()240 if (avgValue < it->first && it->first <= prevValue) in set_ceiling_from_average_sensor_value()272 if (avgValue > it->first && it->first >= prevValue) in set_ceiling_from_average_sensor_value()
129 const auto prevValue = result / multiplier; in calculateForStartupInterval() local131 {ReadingItem(readings.front().first, prevValue), in calculateForStartupInterval()