{"id":23006,"url":"https://patchwork.libcamera.org/api/1.1/patches/23006/?format=json","web_url":"https://patchwork.libcamera.org/patch/23006/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20250324170803.103296-6-stefan.klug@ideasonboard.com>","date":"2025-03-24T17:07:40","name":"[5/5] test: ipa: libipa: histogram: Add tests for small inter quantile mean ranges","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"2fee80eb34578e34bc0a461eaf5ae33581b20dbc","submitter":{"id":184,"url":"https://patchwork.libcamera.org/api/1.1/people/184/?format=json","name":"Stefan Klug","email":"stefan.klug@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/23006/mbox/","series":[{"id":5077,"url":"https://patchwork.libcamera.org/api/1.1/series/5077/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5077","date":"2025-03-24T17:07:35","name":"Fix histogram for some (corner) cases","version":1,"mbox":"https://patchwork.libcamera.org/series/5077/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/23006/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/23006/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id A768EC3285\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 24 Mar 2025 17:08:29 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4C1EA68966;\n\tMon, 24 Mar 2025 18:08:29 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B89D168963\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 24 Mar 2025 18:08:27 +0100 (CET)","from ideasonboard.com (unknown\n\t[IPv6:2a00:6020:448c:6c00:854:5bc6:b2a7:e242])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 38529455;\n\tMon, 24 Mar 2025 18:06:41 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"k1w1xO9r\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1742836001;\n\tbh=6Ij1MUgHESdSGYhcz+KWgHjjzZPPw50/93Cb+5GrFfU=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=k1w1xO9radoMW1V/BJh3p4wLqmIddANw4EhjK7DzFlwnz7fxcgKBRSdL+Ud3fMHSb\n\tY6+RhQSF+CdM+361u+EPhrev2gIVK+s1UfDn4BHEM+wKYo9iYXzr6oZYTox6qo2kw6\n\tOORKlIikBbeQEEVtjTcDRr4x783JFKak9sfyipRU=","From":"Stefan Klug <stefan.klug@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Stefan Klug <stefan.klug@ideasonboard.com>","Subject":"[PATCH 5/5] test: ipa: libipa: histogram: Add tests for small inter\n\tquantile 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","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add tests for small inter quantile mean ranges. These cases were\nfixed in the last commit.\n\nSigned-off-by: Stefan Klug <stefan.klug@ideasonboard.com>\n---\n test/ipa/libipa/histogram.cpp | 4 ++++\n 1 file changed, 4 insertions(+)","diff":"diff --git a/test/ipa/libipa/histogram.cpp b/test/ipa/libipa/histogram.cpp\nindex b96626054af0..b0f9644cebc7 100644\n--- a/test/ipa/libipa/histogram.cpp\n+++ b/test/ipa/libipa/histogram.cpp\n@@ -55,6 +55,10 @@ protected:\n \t\t/* Test quantile means that are in the middle of the bins */\n \t\tASSERT_EQ(hist.interQuantileMean(0.25, 0.75), 1.0);\n \n+\t\t/* Test small ranges at the borders of the histogram */\n+\t\tASSERT_EQ(hist.interQuantileMean(0.0, 0.1), 0.1);\n+\t\tASSERT_EQ(hist.interQuantileMean(0.9, 1.0), 1.9);\n+\n \t\treturn TestPass;\n \t}\n };\n","prefixes":["5/5"]}