[libcamera-devel] [PATCH] ipa: libipa: histogram: Fix typo

Laurent Pinchart laurent.pinchart at ideasonboard.com
Tue Aug 31 11:18:00 CEST 2021


"weighted", derived from the verb "to weight", comes from Middle English
weight, weiȝte, weght, wight, from Old English wiht, ġewiht, from
Proto-Germanic *wihtiz, from Proto-Indo-European *weǵʰ-. In none of
those does the t come before the h.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 src/ipa/libipa/histogram.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ipa/libipa/histogram.cpp b/src/ipa/libipa/histogram.cpp
index fb1eb2a2f0b1..4d94571f903a 100644
--- a/src/ipa/libipa/histogram.cpp
+++ b/src/ipa/libipa/histogram.cpp
@@ -139,7 +139,7 @@ double Histogram::interQuantileMean(double lowQuantile, double highQuantile) con
 		double freq = (cumulative_[bin + 1] - cumulative_[bin])
 			* (std::min(p_next, highPoint) - lowPoint);
 
-		/* Accumulate weigthed bin */
+		/* Accumulate weighted bin */
 		sumBinFreq += bin * freq;
 		/* Accumulate weights */
 		cumulFreq += freq;
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list