From patchwork Mon Mar 24 17:07:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 23006 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id A768EC3285 for ; Mon, 24 Mar 2025 17:08:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4C1EA68966; Mon, 24 Mar 2025 18:08:29 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="k1w1xO9r"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B89D168963 for ; Mon, 24 Mar 2025 18:08:27 +0100 (CET) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:854:5bc6:b2a7:e242]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 38529455; Mon, 24 Mar 2025 18:06:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1742836001; bh=6Ij1MUgHESdSGYhcz+KWgHjjzZPPw50/93Cb+5GrFfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k1w1xO9radoMW1V/BJh3p4wLqmIddANw4EhjK7DzFlwnz7fxcgKBRSdL+Ud3fMHSb Y6+RhQSF+CdM+361u+EPhrev2gIVK+s1UfDn4BHEM+wKYo9iYXzr6oZYTox6qo2kw6 OORKlIikBbeQEEVtjTcDRr4x783JFKak9sfyipRU= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH 5/5] test: ipa: libipa: histogram: Add tests for small inter quantile mean ranges Date: Mon, 24 Mar 2025 18:07:40 +0100 Message-ID: <20250324170803.103296-6-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250324170803.103296-1-stefan.klug@ideasonboard.com> References: <20250324170803.103296-1-stefan.klug@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add tests for small inter quantile mean ranges. These cases were fixed in the last commit. Signed-off-by: Stefan Klug Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- test/ipa/libipa/histogram.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ipa/libipa/histogram.cpp b/test/ipa/libipa/histogram.cpp index b96626054af0..b0f9644cebc7 100644 --- a/test/ipa/libipa/histogram.cpp +++ b/test/ipa/libipa/histogram.cpp @@ -55,6 +55,10 @@ protected: /* Test quantile means that are in the middle of the bins */ ASSERT_EQ(hist.interQuantileMean(0.25, 0.75), 1.0); + /* Test small ranges at the borders of the histogram */ + ASSERT_EQ(hist.interQuantileMean(0.0, 0.1), 0.1); + ASSERT_EQ(hist.interQuantileMean(0.9, 1.0), 1.9); + return TestPass; } };