QList<double> DynamicsPlotterUtil::getMeanValues(const QList< QList<DoubleValue*> > &valuesListList) {
		QList<double> meanValues, emptyList;
		emptyList = QList<double>();

		if(valuesListList.isEmpty()) {
			reportProblem("DynamicsPlotterUtil::getMeanValues : Empty list. Nothing to do.");
			return emptyList;
		}

		for(int currList = 0; currList < valuesListList.size(); ++currList) {
			meanValues.append(getMeanValue(valuesListList.at(currList)));
		}

		return meanValues;
	}
Exemple #2
0
data_t Ultrasonic::getDistance()
{
	return getMeanValue();
}