lift to ASDF section for autoload.
[CommonLispStat.git] / ls-user.lisp
blob68519265462818da073eb1b75f34f993550b3a67
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
29 conjugate realpart imagpart phase
30 min max logand logior logxor lognot ffloor fceiling
31 ftruncate fround signum cis)
32 (:export
33 ;; lsobjects :
34 defproto defproto2
35 defmeth send
37 ;; lstypes :
38 fixnump check-nonneg-fixnum check-one-fixnum
39 check-one-real check-one-number
41 ;; lsmacros:
43 ;; lsfloat :
44 machine-epsilon
46 ;; compound :
47 compound-data-p *compound-data-proto* compound-object-p
48 compound-data-seq compound-data-length
49 element-list element-seq
50 sort-data order rank
51 recursive-map-elements map-elements
52 repeat
53 check-sequence
54 get-next-element make-next-element set-next-element
55 sequencep iseq
56 ordered-nneg-seq
57 select which
58 difference rseq
60 ;; lsmath.lsp
61 ^ ** expt + - * / mod rem pmin pmax abs 1+ 1- log exp sqrt sin cos
62 tan asin acos atan sinh cosh tanh asinh acosh atanh float random
63 truncate floor ceiling round minusp zerop plusp evenp oddp < <= =
64 /= >= > ;; complex
65 conjugate realpart imagpart phase min max
66 logand logior logxor lognot ffloor fceiling ftruncate fround
67 signum cis
69 ;; matrices.lisp
70 matrixp num-rows num-cols matmult identity-matrix diagonal row-list
71 column-list inner-product outer-product cross-product transpose
72 bind-columns bind-rows
74 ;; linalg.lisp
75 chol-decomp lu-decomp lu-solve determinant inverse
76 sv-decomp qr-decomp rcondest make-rotation spline
77 kernel-dens kernel-smooth
78 fft make-sweep-matrix sweep-operator ax+y eigen
79 check-real
80 covariance-matrix matrix print-matrix solve
81 backsolve eigenvalues eigenvectors accumulate cumsum combine
82 lowess
84 ;; in linalg.lisp, possibly not supported by matlisp
85 spline kernel-dens kernel-smooth
87 ;; optimize.lsp
88 newtonmax nelmeadmax
90 ;; lispstat-macros
91 make-rv-function make-rv-function-1
93 ;; data.lisp
94 open-file-dialog read-data-file read-data-columns load-data
95 load-example *variables* *ask-on-redefine*
96 def variables savevar undef
98 ;; statistics.lsp
99 standard-deviation quantile median interquartile-range
100 fivnum sample
102 ;; dists
103 log-gamma set-seed
104 uniform-rand normal-cdf normal-quant normal-dens
105 normal-rand bivnorm-cdf cauchy-cdf cauchy-quant cauchy-dens
106 cauchy-rand gamma-cdf gamma-quant gamma-dens gamma-rand
107 chisq-cdf chisq-quant chisq-dens chisq-rand beta-cdf beta-quant
108 beta-dens beta-rand t-cdf t-quant t-dens t-rand f-cdf f-quant
109 f-dens f-rand poisson-cdf poisson-quant poisson-pmf poisson-rand
110 binomial-cdf binomial-quant binomial-pmf binomial-rand
112 ;;; Here is where we have a problem -- lispstat core should be core
113 ;;; data management and config problems, with packages providing
114 ;;; specialized extensions to LispStat, i.e. regression, nonlin
115 ;;; regression, bayesian regression via laplace approximation, etc.
117 ;;; The following could be considered "recommended packages", similar
118 ;;; to the idea of the recommended packages in R.
120 ;; regression.lsp
121 regression-model regression-model-proto x y intercept sweep-matrix
122 basis weights included total-sum-of-squares residual-sum-of-squares
123 predictor-names response-name case-labels
125 ;; nonlin.lsp
126 nreg-model nreg-model-proto mean-function theta-hat epsilon
127 count-limit verbose
129 ;; bayes.lsp
130 bayes-model bayes-model-proto bayes-internals))
132 (defpackage :lisp-stat-user
133 (:documentation "Experimentation package for LispStat.
134 Serious work should be placed in a similar package elsewhere for
135 reproducibility. But this should hint as to what needs to be
136 done for a user- or analysis-package.")
137 (:nicknames :ls-user)
138 (:use :common-lisp
139 :lisp-stat)
140 (:shadowing-import-from :lisp-stat
141 slot-value call-method call-next-method
143 expt + - * / ** mod rem abs 1+ 1- log exp sqrt sin cos tan
144 asin acos atan sinh cosh tanh asinh acosh atanh float random
145 truncate floor ceiling round minusp zerop plusp evenp oddp
146 < <= = /= >= > > ;; complex
147 conjugate realpart imagpart phase
148 min max logand logior logxor lognot ffloor fceiling
149 ftruncate fround signum cis
151 <= float imagpart))