From 6d1349b851f08f9e9f5b2fd1c22380f5298d4d9f Mon Sep 17 00:00:00 2001 From: Marek L Date: Fri, 5 Jun 2026 17:42:49 +0100 Subject: [PATCH 1/3] Fix IQR not found issue due to nonexisting `defalias` function in sbcl --- src/batch.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/batch.lisp b/src/batch.lisp index 55b5275..a48eae0 100644 --- a/src/batch.lisp +++ b/src/batch.lisp @@ -233,6 +233,6 @@ appearance when ties exist." ;;; Helpful shortcuts -(defalias iqr interquartile-range) +(setf (fdefinition 'iqr) #'interquartile-range) (export 'iqr) From 263c40bdf86b69d0eae2afcfb6d1edb53a09edfa Mon Sep 17 00:00:00 2001 From: Marek L Date: Fri, 5 Jun 2026 17:48:32 +0100 Subject: [PATCH 2/3] Fix loading of :lisp-stat or :statistics packages Before: ``` * (ql:quickload :lisp-stat) debugger invoked on a ORG.TFEB.CONDUIT-PACKAGES::CONDUIT-ERROR in thread No package named :STATISTICS ``` same error happen when trying `(ql:quickload :statistics)` After: All `(ql:quickload :lisp-stat)`, `(ql:quickload :statistics)` or `(ql:quickload "statistics")` work without errors. --- src/pkgdcl.lisp | 3 +-- statistics.asd | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pkgdcl.lisp b/src/pkgdcl.lisp index ea097e5..9bb3463 100644 --- a/src/pkgdcl.lisp +++ b/src/pkgdcl.lisp @@ -1,9 +1,8 @@ ;;; -*- Mode: LISP; Base: 10; Syntax: ANSI-Common-Lisp; Package: CL-USER -*- ;;; Copyright (c) 2022,2023,2026 by Symbolics Pte. Ltd. All rights reserved. ;;; SPDX-License-identifier: MS-PL -(in-package :org.tfeb.clc-user) -(uiop:define-package "statistics" +(uiop:define-package #:statistics (:use #:cl #:let-plus) (:export #:mean #:variance)) diff --git a/statistics.asd b/statistics.asd index cb4f530..56d66d8 100644 --- a/statistics.asd +++ b/statistics.asd @@ -55,6 +55,8 @@ :bug-tracker "https://github.com/Lisp-Stat/statistics/issues" :depends-on ("statistics/streaming" "statistics/batch") + :pathname "src/" + :components ((:file "pkgdcl")) :in-order-to ((test-op (test-op "statistics/tests")))) (defsystem "statistics/tests" From 8cd260faf0d271c01cc943dd0c6929f774081d45 Mon Sep 17 00:00:00 2001 From: Marek L Date: Fri, 5 Jun 2026 20:22:02 +0100 Subject: [PATCH 3/3] Import missing definitions for already exported `variance` and `mean` --- src/pkgdcl.lisp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pkgdcl.lisp b/src/pkgdcl.lisp index 9bb3463..a1555bb 100644 --- a/src/pkgdcl.lisp +++ b/src/pkgdcl.lisp @@ -4,5 +4,8 @@ (uiop:define-package #:statistics (:use #:cl #:let-plus) + (:import-from #:stat-generics + #:mean + #:variance) (:export #:mean - #:variance)) + #:variance))