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