Home
last modified time | relevance | path

Searched refs:validValues (Results 1 – 1 of 1) sorted by relevance

/openbmc/phosphor-fan-presence/control/
H A Dactions.hpp492 std::vector<T> validValues; in set_floor_from_median_sensor_value() local
503 validValues.emplace_back(value); in set_floor_from_median_sensor_value()
512 if (!validValues.empty()) in set_floor_from_median_sensor_value()
514 auto median = validValues.front(); in set_floor_from_median_sensor_value()
516 if (validValues.size() == 2) in set_floor_from_median_sensor_value()
520 median = *std::max_element(validValues.begin(), in set_floor_from_median_sensor_value()
521 validValues.end()); in set_floor_from_median_sensor_value()
523 else if (validValues.size() > 2) in set_floor_from_median_sensor_value()
525 median = utility::getMedian(validValues); in set_floor_from_median_sensor_value()