test clean up. Need to CLOS-ify the numerical= operation
[CommonLispStat.git] / ls-user.lisp
blobe31db5671f02ecc8551bcedeacd975982854165b
1 ;;; -*- mode: lisp -*-
2 ;;; Copyright (c) 2005--2007, by A.J. Rossini <blindglobe@gmail.com>
3 ;;; See COPYRIGHT file for any additional restrictions (BSD license).
4 ;;; Since 1991, ANSI was finally finished. Edited for ANSI Common Lisp.
6 (defpackage :lisp-stat
7 (:documentation "Experimentation package for LispStat. Serious work
8 should be packaged up elsewhere for reproducibility.")
9 (:use :common-lisp
10 :lisp-stat-object-system
11 :lisp-stat-compound-data
12 :lisp-stat-probability
13 :lisp-stat-types
14 :lisp-stat-float
15 :lisp-stat-basics
16 :lisp-stat-data
17 :lisp-stat-math
18 :lisp-stat-matrix
19 :lisp-stat-linalg
20 :lisp-stat-descriptive-statistics
21 :lisp-stat-regression-linear)
22 (:shadowing-import-from :lisp-stat-object-system
23 slot-value call-method call-next-method)
24 (:shadowing-import-from :lisp-stat-math
25 expt + - * / ** mod rem abs 1+ 1- log exp sqrt sin cos tan
26 asin acos atan sinh cosh tanh asinh acosh atanh float random
27 truncate floor ceiling round minusp zerop plusp evenp oddp
28 < <= = /= >= > complex conjugate realpart imagpart phase
29 min max logand logior logxor lognot ffloor fceiling
30 ftruncate fround signum cis)
31 (:export
32 ;; lsobjects :
33 defproto defmeth send
35 ;; lstypes :
36 fixnump check-nonneg-fixnum check-one-fixnum
37 check-one-real check-one-number
39 ;; lsmacros:
41 ;; lsfloat :
42 machine-epsilon
44 ;; compound :
45 compound-data-p *compound-data-proto* compound-object-p
46 compound-data-seq compound-data-length
47 element-list element-seq
48 sort-data order rank
49 recursive-map-elements map-elements
50 repeat
51 check-sequence
52 get-next-element make-next-element set-next-element
53 sequencep iseq
54 ordered-nneg-seq
55 select which
56 difference rseq
58 ;; lsmath.lsp
59 ^ ** expt + - * / mod rem pmin pmax abs 1+ 1- log exp sqrt sin cos
60 tan asin acos atan sinh cosh tanh asinh acosh atanh float random
61 truncate floor ceiling round minusp zerop plusp evenp oddp < <= =
62 /= >= > complex conjugate realpart imagpart phase min max
63 logand logior logxor lognot ffloor fceiling ftruncate fround
64 signum cis
66 ;; matrices.lisp
67 matrixp num-rows num-cols matmult identity-matrix diagonal row-list
68 column-list inner-product outer-product cross-product transpose
69 bind-columns bind-rows
71 ;; linalg.lisp
72 chol-decomp lu-decomp lu-solve determinant inverse
73 sv-decomp qr-decomp rcondest make-rotation spline
74 kernel-dens kernel-smooth
75 fft make-sweep-matrix sweep-operator ax+y eigen
76 check-real
77 covariance-matrix matrix print-matrix solve
78 backsolve eigenvalues eigenvectors accumulate cumsum combine
79 lowess
81 ;; in linalg.lisp, possibly not supported by matlisp
82 spline kernel-dens kernel-smooth
84 ;; optimize.lsp
85 newtonmax nelmeadmax
87 ;; lispstat-macros
88 make-rv-function make-rv-function-1
90 ;; data.lisp
91 open-file-dialog read-data-file read-data-columns load-data
92 load-example *variables* *ask-on-redefine*
93 def variables savevar undef
95 ;; statistics.lsp
96 standard-deviation quantile median interquartile-range
97 fivnum sample
99 ;; dists
100 log-gamma set-seed
101 uniform-rand normal-cdf normal-quant normal-dens
102 normal-rand bivnorm-cdf cauchy-cdf cauchy-quant cauchy-dens
103 cauchy-rand gamma-cdf gamma-quant gamma-dens gamma-rand
104 chisq-cdf chisq-quant chisq-dens chisq-rand beta-cdf beta-quant
105 beta-dens beta-rand t-cdf t-quant t-dens t-rand f-cdf f-quant
106 f-dens f-rand poisson-cdf poisson-quant poisson-pmf poisson-rand
107 binomial-cdf binomial-quant binomial-pmf binomial-rand
109 ;;; Here is where we have a problem -- lispstat core should be core
110 ;;; data management and config problems, with packages providing
111 ;;; specialized extensions to LispStat, i.e. regression, nonlin
112 ;;; regression, bayesian regression via laplace approximation, etc.
114 ;;; The following could be considered "recommended packages", similar
115 ;;; to the idea of the recommended packages in R.
117 ;; regression.lsp
118 regression-model regression-model-proto x y intercept sweep-matrix
119 basis weights included total-sum-of-squares residual-sum-of-squares
120 predictor-names response-name case-labels
122 ;; nonlin.lsp
123 nreg-model nreg-model-proto mean-function theta-hat epsilon
124 count-limit verbose
126 ;; bayes.lsp
127 bayes-model bayes-model-proto bayes-internals))
129 (defpackage :lisp-stat-user
130 (:documentation "Experimentation package for LispStat.
131 Serious work should be placed in a similar package elsewhere for
132 reproducibility. But this should hint as to what needs to be
133 done for a user- or analysis-package.")
134 (:nicknames :ls-user)
135 (:use :common-lisp
136 :lisp-stat)
137 (:shadowing-import-from :lisp-stat
138 slot-value call-method call-next-method
140 expt + - * / ** mod rem abs 1+ 1- log exp sqrt sin cos tan
141 asin acos atan sinh cosh tanh asinh acosh atanh float random
142 truncate floor ceiling round minusp zerop plusp evenp oddp
143 < <= = /= >= > complex conjugate realpart imagpart phase
144 min max logand logior logxor lognot ffloor fceiling
145 ftruncate fround signum cis
147 <= float imagpart))