The cls Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cls Reference Manual

This is the cls Reference Manual, version 2, generated automatically by Declt version 2.4 "Will Decker" on Wed Jun 20 11:38:05 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction


Time-stamp: <2014-04-07 16:28:57 tony>

* Current Status: IMPROVING

  but we are rebuilding it.

* Fast Start

  Here's a general fast start approach for using this.   

  1. Get access to a Common Lisp implementation on your platform.
     Make sure you have BLAS, LAPACK, and their corresponding
     development environments on your system.

     For example, on a recent debian (testing), one may need:
#+BEGIN_EXAMPLE
libffi6
libblas
liblapack
libgsl
#+END_EXAMPLE
     and the corresponding /-dev/ packages.

  2. if needed, install quicklisp (http://www.quicklisp.org)
  3. if wanted, install git (http://www.git-scm.org/)
  4. Use git to fetch common-lisp-statistics from the repository:
        git://github.com/blindglobe/common-lisp-stat.git
     and put it into your quicklisp local-projects directory
     (you will need to put a few more projects there as well), 
     OR make sure you have an internet connection and go to step 5 and
     fetch a not-so-bleeding-edge version from QuickLisp.

     We suggest something like:

#+begin_src shell
mkdir ~/quicklisp/
mkdir ~/quicklisp/local-projects
cd ~/quicklisp/local-projects
git clone git://github.com/blindglobe/common-lisp-stat.git
git clone git://github.com/blindglobe/lisp-matrix.git
#+end_src

     (with the 5th and on lines representing stuff undergoing rapid
     change, so possibly out of date on QUICKLISP).

     You might need to grab XARRAY as well, and if behind a firewall,
     might need to use HTTP or similar alternative transport.

  5. Start up the Common Lisp implementation, and:

#+name: loadIt
#+begin_src lisp
  (ql:register-local-projects)
  (ql:quickload :antik)
  (ql:quickload :cls)
#+end_src

     TODO: Unfortunately, it looks like ANTIK needs to be preloaded,
     or it gets confused.  I don't yet know why.

  6. get coffee, tea, water, beer, or a glass of wine, review the
     Common Lisp Statistics mailing list, chat with friends, etc,
     until it is done compiling and loading.
  7. Report success/failure back to the news group (
      https://groups.google.com/forum/?fromgroups#!forum/lisp-stat )
     or directly to Tony Rossini mail, i.e.  (
     mailto:blindglobe@gmail.com ) if you don't want to be public
     about it.
  8. Start trying it out.  The examples/  directory is a good place
     to start evaluating the files, one at a time.  Preferrably in
     order! 

  More details can be fond in the subsequent sections.

** Common Lisp

   Current requirements are basically that you have a Common Lisp
   implementation such as SBCL or CCL (though CLISP might work) and
   BLAS/LAPACK on your system.

   SBCL and CCL are in active use by developers.  We are interested in
   finding out details regarding successes with other distributions
   and would be pleased to add such information here.


*** TODO Microsoft Windows

    Currently, LispCabinet would be the simplest way to get started,
    with either SBCL or CCL as the Lisp Implementation.  Need
    experiences from others using 

    http://lispcabinet.sourceforge.net/

*** Linux

    Most distributions contain SBCL or CLISP.  The instructions for
    getting and installing CCL are relatively straightforward.

*** MacOSX

    Both CCL and SBCL have been remarked to work.  CCL seems to be
    preferred on this platform?

** Configuring BLAS/LAPACK libraries locations

   Currently this is a manual operation, which will change in a later
   version.

   Edit the file external/cl-blapack/load-blapack-libs.lisp

   Search for the following 3 parameters 
   - *gfortran-lib* 
   - *blas-lib*
   - *lapack-lib*

   You need to check that your dynamic library path has been properly
   set up in the shell, by setting up your .bashrc (or equivalent
   shell init file, or equivalent environment variable settings).

*** TODO [#A] Setting up BLAS/LAPACK on Microsoft OS

    i.e. compilation environment and tools, if needed, on Microsoft Windows?

    For windows, we recommend you use cygwin to get straightforward
    access. I'll document the steps if there is a demand.

*** Linux

    Get lapack-dev, blas-dev from your Linux distribution.

    i.e., something like:

#+BEGIN_SRC shell
sudo apt-get install libblas
sudo apt-get install liblapack
#+END_SRC

    For Linux, if installed in a weird place, you need to make sure
    the loader looks for it.

#+begin_src shell
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:???
#+end_src

    and need to replace the ???

    SBCL is known to work (0.58+, 1.1.1+)

    CCL is thought to work

    (CMUCL and CLISP may work, but not tested)

*** TODO MacOSX

   For Mac OSX set

#+BEGIN_SRC sh
   export DYLD_FALLBACK-LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/opt/local/lib
#+END_SRC

    *FIXME*: Tony has no clue, please fill this in since most mailing
    list folks use Macs.

    - CCL is thought to work
    - SBCL is known to work

    For OS X: change the parameters as suggested in the file. Both
    BLAS and LAPACK are pre installed on Mac OSX.

** Install Quicklisp

   LispCabinet has it preinstalled, and you can use that version to upgrade

   Debian/Ubuntu also allow you access to a (possibly outdated)
   version.  Not sure about upgrade potential.

   On Linux and MacOSX, I would recommend using the instructions at
   the QuickLisp www site (http://www.quicklisp.org).

** Install Git

   Unfortunately, as much as we really would like to get rid of this
   PITA stage, we are pre-alpha, and that means no chance, unless you
   want to fix your own bugs and copy/paste fixes, etc.  Much simpler
   to figure out a small bit of git.

   Hopefully, your distribution (Linux) has it, and instructions for
   getting it, along with tutorials and documentation, can be found
   for MacOSX and Microsoft Windows on http://www.git-scm.org/

   GitHub also has a Microsoft Windows application that might be
   useful for fetching and working with GitHub repositories (including
   this one).

*** for mac osx

#+begin_src sh
sudo port install git
#+end_src

*** for linux

    Using Debian, Ubuntu, or other apt-get based distributions as an example:

#+begin_src sh
sudo apt-get install git
#+end_src

** Using git to fetch Common Lisp Statistics

   At this stage, we need to identify where you will put the D/L'd
   package.  If you are have an existing, highly tuned quicklisp
   setup, please figure it out and jump to the next stage, but
   basically you need to pull common-lisp-stat from Blindglobe's
   repository, along with a few others.  

#+begin_src sh
cd ~/quicklisp/local-projects/
git clone https://github.com/blindglobe/common-lisp-stat.git
#+end_src

   Regarding the "few others", all of them are currently part of
   QuickLisp, so you only need them if you want to develop with them.
   Which isn't entirely a bad idea.

   These would include:

| lisp-matrix | CLS         | generic interface to BLAS and LAPACK using matrix like API |
| cl-blapack  | lisp-matrix | BLAS / LAPACK FFI                                          |
| fnv         | lisp-matrix | foriegn-numeric-vectors, C-storage for lisp-matrix         |
| ffa         | lisp-matrix | foriegn-??-arrays, LISP storage for lisp-matrix            |
| lift        | CLS         | unit-testing                                               |
| listoflist  | CLS         | list as an array data structure                            |
| xarray      |             |                                                            |

** Compile and load dependencies.

Start up your Common Lisp implementation and type in:

#+begin_src lisp
  (ql:register-local-projects)
  (ql:quickload :cls)
#+end_src

Retire for a well earned coffee and upon your return you should find
the package completely installed.  Obviously, potential errors can
creep in with spelling the filenames correctly, so be careful.

And now, everything should be working.  This is the case for at least
one person, so data on failures is very welcome.

** Start trying it out

Now, load into your IDE or lisp, the files in the examples directory,
such as:

| 00-loadingData.lisp        |
| 02-DSVloading.lisp         |
| 04-dataManipulation.lisp   |
| 10-basicEDA.lisp           |
| 20-visual-2d-cairo2.lisp   |
| 50-TTestExample.lisp       |
| 60-regressionExamples.lisp |
| linear-regression.lisp     |
| ls-demo.lisp               |
| ls-demo-ls1.lisp           |
| XX-readMe.lisp             |

And more

** Example Usage steps

Load the example lisp files 
  
*** change directory into the CommonLispStat working directory.

This is just for directory convenience, not for any real reason.

#+begin_src sh
cd ~/quicklisp/local-projects
#+end_src

*** start your lisp

#+begin_src sh
sbcl
#+end_src

or 

#+begin_src sh
CCL
#+end_src

*** follow the commands in the *ls-demo.lisp* (need to add link) file, i.e.


#+BEGIN_SRC lisp
 (ql:quickload :cls)

 (in-package :cls)
#+END_SRC 

    Initially we will work in the cls package as all the basic
    functions we would need are present

    For serious work we would create our own workspace and save it in
    a separate package, but for now we will take this short cut.

#+BEGIN_SRC lisp
 (normal-rand 20)
 (setf mytest (normal-rand 20))
#+END_SRC

    and see if they work (basic CFFI functionality for external C
    library, LIFT package for unit-testing framework to ensure run
    time stability).
  

*** DONE Setup a place to work

    In Common Lisp, you need to select and setup namespace to store
    data and functions.  There is a scratch user-package, or sandbox,
    for CLS, *cls-user* , which you can select via:

#+BEGIN_SRC lisp -n :tangle "readme-example.lisp"
(in-package :cls-user)
#+END_SRC

    and this has some basic modules from CLS instantiated (dataframes,
    probability calculus, numerical linear algebra, basic summaries
    (numerical and visual displays).

    However, it can be better is to create a package to work in, which
    pulls in only desired functionality:

#+BEGIN_SRC lisp +n :tangle "readme-example.lisp"
  (in-package :cl-user)
  (defpackage :my-package-user
    (:documentation "demo of how to put serious work should be placed in
      a similar package elsewhere for reproducibility.  This hints as to
      what needs to be done for a user- or analysis-package.")
    (:nicknames :my-clswork-user)
    (:use :common-lisp ; always needed for user playgrounds!
          :lisp-matrix ; we only need the packages that we need...
          :common-lisp-statistics
          :cl-variates
          :lisp-stat-data-examples) ;; this ensures access to a data package
    (:shadowing-import-from :lisp-stat
        ;; This is needed temporarily until we resolve the dependency and call structure. 
        call-method call-next-method
  
        expt + - * / ** mod rem abs 1+ 1- log exp sqrt sin cos tan
        asin acos atan sinh cosh tanh asinh acosh atanh float random
        truncate floor ceiling round minusp zerop plusp evenp oddp 
        < <= = /= >= > > ;; complex
        conjugate realpart imagpart phase
        min max logand logior logxor lognot ffloor fceiling
        ftruncate fround signum cis
  
        <= float imagpart)
  
    (:export summarize-data summarize-results this-data this-report))
  
  (in-package :my-clswork-user) ;; or :my-package-user
  
  (setf my-data
        (let ((var1 )) ))
#+END_SRC

    We need to pull in the packages with data or functions that we
    need; just because the data/function is pulled in by another
    package, in that package's namespace, does NOT mean it is
    available in this name space.  However, the
    *common-lisp-statistics* package will ensure that fundamental
    objects and functions are always available.

*** TODO Get to work [0/3]
**** TODO Pull in or create data

**** TODO Summarize results

**** TODO Save work and results for knowledge building and reuse 

One can build a package, or save an image (CL implementation
dependent), or save text files.
  
*** TODO Inform  moi of problems or successes

    mailto:blindglobe@gmail.com if there is anything wrong, or
    even if something happens to work.

    Current beliefs:
    - SBCL is target platform.   CCL and CMUCL should be similar.
    - CLISP is finicky regarding the problems that we have with CFFI
      conversation.  In particular that we can not really do typing
      that we need to take care of.  I think this is my (Tony's)
      problem, not someone elses, and specifically, not CLISP's
    - Need to test ECL.
      
* Introduction
** Core Philosophy

  "Languages shape how we ..."   Need to get and insert this quote
  that Duncan Temple-Lang found.

  The API should distinguish between the realization and the
  statistical interpretation.  Goal is to teach statisticians how to
  think "systems-computationally", and programmers, comp-sci types,
  informaticists and other "data scientists" how to think
  "statistically", in order to get a jump on the competition.

  The goal of this system is to promote a change in thinking, to move
  the data analysis approach, currently stuck in a mix of 70s-early
  90s approaches, into a new generation/level.

** Design Philosophy

   The approach we are taking is one where we provide a general
   method, and some fundamental building blocks, but don't force users
   into approaches in order to allow for experimentation.

   DSL's should be built on top of the core packages, as needed or
   wanted.  

   (TonyR:)  The DSL I want to build is a verbose statistically
   precise computing language, but we need quality code underneathe
   (which others could use for specialized terse DSL's).

   DSL: domain specific language.

* History

   See files in file:Doc/  for history, design considerations, and
   random, sometimes false and misleading, musings.

** XLispStat


*** ViSta

*** ARC

** Common LispStat

   Initial development, 1989 time frame, partially developed during a
   visit by Luke Tierney to Bell Labs.

** Common Lisp Statistics

   This system.

* Local modifications, Development, Contributions

  Since this project is 

#+begin_src shell
git clone git://github.com/blindglobe/common-lisp-stat.git 
cd common-lisp-stat
#+end_src

   will pull the whole repository, and create a "master" branch to
   work on.  If you are making edits, which I'd like, you don't want
   to use the master branch, but more to use a topic-centric branch,
   so you might:

#+begin_src shell
git checkout -b myTopicBranch
#+end_src

and then work on myTopicBranch, pulling back to the master branch when
needed by

#+begin_src shell
git checkout master
git pull . myTopicBranch
#+end_src

(or
#+begin_src shell
git rebase myTopicBranch
#+end_src
)

BETTER DOCUMENTATION EXAMPLES EXIST ON-LINE (on the git WWW site
mentioned above)!! PLEASE READ THEM, THE ABOVE IS SPARSE AND MIGHT BE
OUTDATED!

** Contributing through GitHub

   Alternatively, one can work on the github repositories as well.
   They are a bit differently organized, and require one to get a
   github account and work from there.

   basically, fork the repository on github on the WWW interface, then
   make a branch (as below), push back the branch to github, and
   notify the main repository that there is something to be pulled.
   And we'll pull it back in.

** Commiting with the MOB on repo.or.cz

of course, perhaps you want to contribute to the mob branch.   For
that, after cloning the repository as above, you would:

#+begin_src shell
    git checkout -b mob remotes/origin/mob
#+end_src

(work, work, work... through a cycle of

#+begin_src shell
         
	 git add 
	 git commit -m "what I just did"
#+end_src

 ad-nauseum.  When ready to commit, then just:

#+begin_src shell
     git push git+ssh://mob@repo.or.cz/srv/git/CommonLispStat.git mob:mob
#+end_src

)

and it'll be put on the mob branch, as a proposal for merging. 

Another approach would be to pull from the topic branch into the mob
branch before uploading.   Will work on a formal example soon.

(the basic principle is that instead of the edit cycle on mob, do
something like:

#+begin_src shell
  git checkout mob
  git pull . myTopicBranch   
  git push git+ssh://mob@repo.or.cz/srv/git/CommonLispStat.git mob:mob
#+end_src

)

** Licensing

   We currently are using and recommend the MIT style license approach.

* Footnotes

[fn:1] I´m not including instructions for Emacs or git, as the former
is dealt with other places and the latter was required for you to get
this.  Since disk space is cheap, I´m intentionally forcing git to be
part of this system.  Sorry if you hate it.  Org-mode, org-babel, and
org-babel-lisp, and hypo are useful for making this file a literate
and interactively executable piece of work. 


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cls

Author

A.J. Rossini <blindglobe@gmail.com>

License

MIT

Description

Common Lisp Statistics (CLS): A System for Statistical
Computing with Common Lisp; based on Common LispStat (CLS alpha1) by Luke Tierney <luke@stat.uiowa.edu> (apparently originally written when Luke was at CMU, on leave at Bell Labs?). Last touched by him in 1991, then restarted by AJR in 2005. Except for TeX/LaTeX, how much 14 year old code can honestly stay stable?

Version

2

Dependencies
Source

cls.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Modules

Modules are listed depth-first from the system components tree.


Next: , Previous: , Up: Modules   [Contents][Index]

3.1 cls/packaging

Dependency

readme.org (file)

Parent

cls (system)

Location

src/

Components

Next: , Previous: , Up: Modules   [Contents][Index]

3.2 cls/proto-objects

Dependencies
Parent

cls (system)

Location

src/objsys/

Component

lsobjects.lisp (file)


Next: , Previous: , Up: Modules   [Contents][Index]

3.3 cls/cls-core

Dependencies
Parent

cls (system)

Location

src/basics/

Components

Next: , Previous: , Up: Modules   [Contents][Index]

3.4 cls/stat-data

Dependencies
Parent

cls (system)

Location

src/data/

Components

Next: , Previous: , Up: Modules   [Contents][Index]

3.5 cls/cls-basics

Dependencies
Parent

cls (system)

Location

src/basics/

Component

lsbasics.lisp (file)


Next: , Previous: , Up: Modules   [Contents][Index]

3.6 cls/descriptives

Dependencies
Parent

cls (system)

Location

src/describe/

Component

statistics.lisp (file)


Next: , Previous: , Up: Modules   [Contents][Index]

3.7 cls/example-data

Dependencies
Parent

cls (system)

Location

Data/

Components

Next: , Previous: , Up: Modules   [Contents][Index]

3.8 cls/lisp-stat-unittest

Dependencies
Parent

cls (system)

Location

src/unittests/

Components

Previous: , Up: Modules   [Contents][Index]

3.9 cls/lisp-stat-unittest2

Dependencies
Parent

cls (system)

Location

src/unittests2/

Component

unittests2.lisp (file)


Next: , Previous: , Up: Top   [Contents][Index]

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Next: , Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.1 cls.asd

Location

cls.asd

Systems

cls (system)

Packages

cls-system


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.2 cls/packaging/packages.lisp

Parent

packaging (module)

Location

src/packages.lisp

Packages

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.3 cls/packaging/config.lisp

Dependency

packages.lisp (file)

Parent

packaging (module)

Location

src/config.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.4 cls/proto-objects/lsobjects.lisp

Parent

proto-objects (module)

Location

src/objsys/lsobjects.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.5 cls/cls-core/lstypes.lisp

Parent

cls-core (module)

Location

src/basics/lstypes.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.6 cls/cls-core/lsfloat.lisp

Dependency

lstypes.lisp (file)

Parent

cls-core (module)

Location

src/basics/lsfloat.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.7 cls/cls-core/compound.lisp

Dependency

lsfloat.lisp (file)

Parent

cls-core (module)

Location

src/basics/compound.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.8 cls/cls-core/lsmacros.lisp

Dependencies
Parent

cls-core (module)

Location

src/basics/lsmacros.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.9 cls/cls-core/lsmath.lisp

Dependencies
Parent

cls-core (module)

Location

src/basics/lsmath.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.10 cls/stat-data/dataframe.lisp

Parent

stat-data (module)

Location

src/data/dataframe.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.11 cls/stat-data/dataframe-array.lisp

Parent

stat-data (module)

Location

src/data/dataframe-array.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.12 cls/stat-data/dataframe-matrixlike.lisp

Parent

stat-data (module)

Location

src/data/dataframe-matrixlike.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.13 cls/stat-data/dataframe-listoflist.lisp

Parent

stat-data (module)

Location

src/data/dataframe-listoflist.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.14 cls/stat-data/dataframe-functionality.lisp

Parent

stat-data (module)

Location

src/data/dataframe-functionality.lisp

Exported Definitions

make-dataframe (function)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.15 cls/stat-data/dataframe-query.lisp

Parent

stat-data (module)

Location

src/data/dataframe-query.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.16 cls/stat-data/dataframe-initialisation.lisp

Parent

stat-data (module)

Location

src/data/dataframe-initialisation.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.17 cls/stat-data/data.lisp

Parent

stat-data (module)

Location

src/data/data.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.18 cls/stat-data/data-xls-compat.lisp

Parent

stat-data (module)

Location

src/data/data-xls-compat.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.19 cls/stat-data/import.lisp

Parent

stat-data (module)

Location

src/data/import.lisp

Exported Definitions

filename.dsv->dataframe (function)

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.20 cls/cls-basics/lsbasics.lisp

Parent

cls-basics (module)

Location

src/basics/lsbasics.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.21 cls/descriptives/statistics.lisp

Parent

descriptives (module)

Location

src/describe/statistics.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.22 cls/example-data/examples.lisp

Parent

example-data (module)

Location

Data/examples.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.23 cls/example-data/absorbtion.lisp

Parent

example-data (module)

Location

Data/absorbtion.lisp

Exported Definitions
Internal Definitions

absorpbtion (special variable)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.24 cls/example-data/diabetes.lisp

Parent

example-data (module)

Location

Data/diabetes.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.25 cls/example-data/leukemia.lisp

Parent

example-data (module)

Location

Data/leukemia.lisp

Internal Definitions

lk-sprob (function)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.26 cls/example-data/randu.lisp

Parent

example-data (module)

Location

Data/randu.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.27 cls/example-data/aircraft.lisp

Parent

example-data (module)

Location

Data/aircraft.lisp

Internal Definitions

failure-times (special variable)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.28 cls/example-data/metabolism.lisp

Parent

example-data (module)

Location

Data/metabolism.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.29 cls/example-data/book.lisp

Parent

example-data (module)

Location

Data/book.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.30 cls/example-data/heating.lisp

Parent

example-data (module)

Location

Data/heating.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.31 cls/example-data/oxygen.lisp

Parent

example-data (module)

Location

Data/oxygen.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.32 cls/example-data/stackloss.lisp

Parent

example-data (module)

Location

Data/stackloss.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.33 cls/example-data/car-prices.lisp

Parent

example-data (module)

Location

Data/car-prices.lisp

Internal Definitions

car-prices (special variable)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.34 cls/example-data/iris.lisp

Parent

example-data (module)

Location

Data/iris.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.35 cls/example-data/puromycin.lisp

Parent

example-data (module)

Location

Data/puromycin.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.36 cls/example-data/tutorial.lisp

Parent

example-data (module)

Location

Data/tutorial.lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.37 cls/lisp-stat-unittest/unittests.lisp

Parent

lisp-stat-unittest (module)

Location

src/unittests/unittests.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.38 cls/lisp-stat-unittest/unittests-lstypes.lisp

Dependency

unittests.lisp (file)

Parent

lisp-stat-unittest (module)

Location

src/unittests/unittests-lstypes.lisp

Internal Definitions

lisp-stat-ut-types (class)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.39 cls/lisp-stat-unittest/unittests-specfn.lisp

Dependency

unittests.lisp (file)

Parent

lisp-stat-unittest (module)

Location

src/unittests/unittests-specfn.lisp

Internal Definitions

lisp-stat-ut-spec-fns (class)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.40 cls/lisp-stat-unittest/unittests-proto.lisp

Dependency

unittests.lisp (file)

Parent

lisp-stat-unittest (module)

Location

src/unittests/unittests-proto.lisp

Internal Definitions

lisp-stat-ut-proto (class)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.41 cls/lisp-stat-unittest/unittests-listoflist.lisp

Dependency

unittests.lisp (file)

Parent

lisp-stat-unittest (module)

Location

src/unittests/unittests-listoflist.lisp

Internal Definitions

lisp-stat-ut-listoflist (class)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.42 cls/lisp-stat-unittest/unittests-arrays.lisp

Dependency

unittests.lisp (file)

Parent

lisp-stat-unittest (module)

Location

src/unittests/unittests-arrays.lisp

Internal Definitions

lisp-stat-ut-array (class)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.43 cls/lisp-stat-unittest/unittests-regression.lisp

Dependency

unittests.lisp (file)

Parent

lisp-stat-unittest (module)

Location

src/unittests/unittests-regression.lisp

Internal Definitions

lisp-stat-ut-regression (class)


Previous: , Up: Lisp files   [Contents][Index]

4.1.44 cls/lisp-stat-unittest2/unittests2.lisp

Parent

lisp-stat-unittest2 (module)

Location

src/unittests2/unittests2.lisp


Previous: , Up: Files   [Contents][Index]

4.2 Other


Next: , Previous: , Up: Other files   [Contents][Index]

4.2.1 cls/version

Parent

cls (system)

Location

version.lisp-expr


Next: , Previous: , Up: Other files   [Contents][Index]

4.2.2 cls/LICENSE.mit

Dependency

version (file)

Parent

cls (system)

Location

LICENSE.mit


Previous: , Up: Other files   [Contents][Index]

4.2.3 cls/README.org

Dependency

license.mit (file)

Parent

cls (system)

Location

README.org


Next: , Previous: , Up: Top   [Contents][Index]

5 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

5.1 cls-system

Source

cls.asd

Use List

Next: , Previous: , Up: Packages   [Contents][Index]

5.2 cls-dataframe-example

Source

packages.lisp (file)

Use List

Next: , Previous: , Up: Packages   [Contents][Index]

5.3 cls-clunit

Source

packages.lisp (file)

Use List

Next: , Previous: , Up: Packages   [Contents][Index]

5.4 lisp-stat-unittests

Source

packages.lisp (file)

Use List
Used By List

cls-dataframe-example

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.5 lisp-stat-user

Experimentation package for LispStat. Serious work
should be placed in a similar package elsewhere for reproducibility. But this should hint as to what needs to be done for a user- or analysis-package.

Source

packages.lisp (file)

Nicknames
Use List

Next: , Previous: , Up: Packages   [Contents][Index]

5.6 lisp-stat-data-examples

Example data for unittests, examples, illustrations,

Source

packages.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.7 common-lisp-statistics

Experimentation package for LispStat. Serious work
should be packaged up as a separate but similar package to help drive reproducibility. By this I mean, creating a data/analytics/analysis package with the minimal set of objects/packages required.

Source

packages.lisp (file)

Nicknames
Use List
Used By List
Exported Definitions

x (special variable)


Next: , Previous: , Up: Packages   [Contents][Index]

5.8 lisp-stat-regression-linear

Source

packages.lisp (file)

Use List
Used By List

common-lisp-statistics


Next: , Previous: , Up: Packages   [Contents][Index]

5.9 lisp-stat-descriptive-statistics

Source

packages.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.10 lisp-stat-data

Data management, integration, I/O, and other data technologies.

Source

packages.lisp (file)

Nickname

ls-data

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.11 lisp-stat-math

Vectorization of numerical functions

Source

packages.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.12 cls-probability

Source

packages.lisp (file)

Use List

Next: , Previous: , Up: Packages   [Contents][Index]

5.13 cls-visualize

Source

packages.lisp (file)

Use List
Used By List

common-lisp-statistics


Next: , Previous: , Up: Packages   [Contents][Index]

5.14 lisp-stat-model

Model management for data analysis.

Source

packages.lisp (file)

Use List

Next: , Previous: , Up: Packages   [Contents][Index]

5.15 cls-datatrans

Data I/O and similar import technologies.

Source

packages.lisp (file)

Use List
Used By List

common-lisp-statistics


Next: , Previous: , Up: Packages   [Contents][Index]

5.16 cls-dataio

Data I/O and similar import technologies.

Source

packages.lisp (file)

Use List
Used By List

common-lisp-statistics

Exported Definitions

filename.dsv->dataframe (function)

Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.17 cls-dataframe

Source

packages.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.18 cls-data

Source

packages.lisp (file)

Use List

common-lisp

Used By List
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.19 cls-matrix

basic utilities for using lisp arrays as numerical
matrices. Not optimized, and must consider this slow. Routines should be optimized, it is only that we need them first, optimize them later.

Source

packages.lisp (file)

Use List

common-lisp


Next: , Previous: , Up: Packages   [Contents][Index]

5.20 lisp-stat-basics

Source

packages.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.21 lisp-stat-macros

Source

packages.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.22 lisp-stat-compound-data

Source

packages.lisp (file)

Use List
Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.23 lisp-stat-float

Source

packages.lisp (file)

Use List

common-lisp

Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.24 lisp-stat-types

Provides some typeing for LispStat, but is clearly a bit incomplete.

Source

packages.lisp (file)

Use List

common-lisp

Used By List
Exported Definitions

Next: , Previous: , Up: Packages   [Contents][Index]

5.25 lisp-stat-object-system

Source

packages.lisp (file)

Nicknames
Use List

common-lisp

Used By List
Exported Definitions
Internal Definitions

Previous: , Up: Packages   [Contents][Index]

5.26 lisp-stat-config

holds Common Lisp Statistics configuration/loading variables and related functions.

Source

packages.lisp (file)

Nickname

cls-config

Use List

common-lisp

Used By List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

6.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.1 Special variables

Special Variable: *ask-on-redefine*
Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Special Variable: *cls-data-dir*
Package

lisp-stat-config

Source

config.lisp (file)

Special Variable: *cls-installation-home-dir*

Value considered "home" for the installation. Requires the use of ASDF to find out where we are. But ASDF is required no matter what.

Package

lisp-stat-config

Source

config.lisp (file)

Special Variable: *common-lisp-stat-version*

Version currently loaded and being used. Need to make into a parseable object for version testing. Currently using integers.

Package

lisp-stat-config

Source

config.lisp (file)

Special Variable: *compound-data-proto*
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Special Variable: *object*

*object* is the global root object.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Special Variable: *variables*
Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Special Variable: +stat-cfloat-typing+
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Special Variable: +stat-float-template+
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Special Variable: +stat-float-typing+
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Special Variable: absorbtion
Package

lisp-stat-data-examples

Special Variable: aluminum
Package

lisp-stat-data-examples

Source

absorbtion.lisp (file)

Special Variable: diabetes
Package

lisp-stat-data-examples

Source

examples.lisp (file)

Special Variable: dlabs
Package

lisp-stat-data-examples

Source

examples.lisp (file)

Special Variable: iron
Package

lisp-stat-data-examples

Source

absorbtion.lisp (file)

Special Variable: machine-epsilon
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Special Variable: x
Package

common-lisp-statistics


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.2 Macros

Macro: def NAME VALUE &optional DOCUMENTATION

Syntax: (def var form)
VAR is not evaluated and must be a symbol. Assigns the value of FORM to VAR and adds VAR to the list *VARIABLES* of def’ed variables. Returns VAR. If VAR is already bound and the global variable *ASK-ON-REDEFINE*
is not nil then you are asked if you want to redefine the variable.

Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Macro: defmeth OBJECT NAME ARGLIST FIRST &rest BODY

Syntax: (defmeth object method-name lambda-list [doc] {form}*)
OBJECT must evaluate to an existing object. Installs a method for NAME in the value of OBJECT and installs DOC in OBJECTS’s documentation. RETURNS: method-name.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Macro: defproto NAME &optional IVARS CVARS PARENTS DOC

Syntax (defproto name &optional ivars cvars (parent *object*) doc) Makes a new object prototype with instantiated/set variables IVARS, ’class’ variables CVARS (class or ’cleared’??)) and parents PARENT. PARENT can be a single object or a list of objects. IVARS and CVARS must be lists.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Macro: make-base-trans-fun SYM
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Macro: make-base-trans-fun-2 SYM
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Macro: make-rv-function SYM FCN &rest ARGS
Package

lisp-stat-macros

Source

lsmacros.lisp (file)

Macro: make-rv-function-1 SYM FCN &rest ARGS
Package

lisp-stat-macros

Source

lsmacros.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.3 Functions

Function: * &optional X Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: ** X Y
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: + &optional X Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: - X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: / X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: /= X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: 1+ X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: 1- X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: < X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: <= X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: = X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: > X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: >= X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: ^ X Y
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: abs X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: acos X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: acosh X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: almost= A B &key TOL

Numerically compares 2 values to a tolerance.

Package

lisp-stat-unittests

Source

unittests.lisp (file)

Function: almost=lists A B &key TOL

Numerically compare 2 lists using almost=.

Package

lisp-stat-unittests

Source

unittests.lisp (file)

Function: asin X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: asinh X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: atan X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: atanh X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: base-abs X

Return the absolute value of the number.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-acos X

Return the arc cosine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-acosh X

Return the hyperbolic arc cosine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-asin X

Return the arc sine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-asinh X

Return the hyperbolic arc sine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-atan X &optional Y

Return the arc tangent of Y if X is omitted or Y/X if X is supplied. Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-atanh X

Return the hyperbolic arc tangent of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-cis X

Return cos(Theta) + i sin(Theta), i.e. exp(i Theta). Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-cos X

Return the cosine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-cosh X

Return the hyperbolic cosine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-exp X

Return e raised to the power NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-expt X Y

Return BASE raised to the POWER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-fceiling X &optional Y

Same as CEILING, but returns first value as a float. Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-ffloor X &optional Y

Same as FLOOR, but returns first value as a float. Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-float X &optional Y

Converts any REAL to a float. If OTHER is not provided, it returns a SINGLE-FLOAT if NUMBER is not already a FLOAT. If OTHER is provided, the result is the same float format as OTHER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-fround X &optional Y

Same as ROUND, but returns first value as a float. Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-ftruncate X &optional Y

Same as TRUNCATE, but returns first value as a float. Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-log X &optional Y

Return the logarithm of NUMBER in the base BASE, which defaults to e. Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-phase X

Return the angle part of the polar representation of a complex number. For complex numbers, this is (atan (imagpart number) (realpart number)). For non-complex positive numbers, this is 0. For non-complex negative numbers this is PI.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-signum X

If NUMBER is zero, return NUMBER, else return (/ NUMBER (ABS NUMBER)). Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-sin X

Return the sine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-sinh X

Return the hyperbolic sine of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-sqrt X

Return the square root of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-tan X

Return the tangent of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: base-tanh X

Return the hyperbolic tangent of NUMBER.
Modified to coerce arguments(s) to stat-float or stat-cfloat.

Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: call-method OBJECT SELECTOR &rest ARGS

Args (object selector &rest args)
Funcalls method for SELECTOR found in OBJECT to SELF. Can only be used in a method.
Call method belonging to another object on current object.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: call-next-method &rest ARGS

Args (&rest args)
Funcalls next method for current selector and precedence list. Can only be used in a method.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: caselabels DF

Case-name handling for DATAFRAME-LIKE. Needs error checking.

Package

cls-dataframe

Source

dataframe.lisp (file)

Setf Expander

(setf caselabels) (setf expander)

Setf Expander: (setf caselabels) DF CL
Package

cls-dataframe

Source

dataframe.lisp (file)

Reader

caselabels (function)

Writer

set-caselabels (function)

Function: ceiling X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: check-nonneg-fixnum X

Ensure that x or all elts of x are non-negative fixnums.

Package

lisp-stat-types

Source

lstypes.lisp (file)

Function: check-one-fixnum X
Package

lisp-stat-types

Source

lstypes.lisp (file)

Function: check-one-nonneg-fixnum X

return value if true, throw error otherwise.

Package

lisp-stat-types

Source

lstypes.lisp (file)

Function: check-one-number A
Package

lisp-stat-types

Source

lstypes.lisp (file)

Function: check-one-real A
Package

lisp-stat-types

Source

lstypes.lisp (file)

Function: check-sequence ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: cis X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: compound-data-length ()

Args (x)
Returns length of data sequence in X.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: compound-data-p ()

Args: (x)
Returns T if X is a compound data item, NIL otherwise.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: compound-data-seq ()

Args (x)
Returns data sequence in X.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: compound-object-p ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: conjugate X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: cos X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: cosh X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: count-elements X

Args: (number &rest more-numbers)
Returns the number of its arguments. Vector reducing

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: difference ()

Args: (x)
Returns differences for a sequence X.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: element-list ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: element-seq ()

Args: (x)
Returns sequence of the elements of compound item X.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: evenp X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: exp X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: expt X Y
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: fceiling X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: ffloor X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: filename.dsv->dataframe FILENAME &optional DELIMCHAR VARNAMEHEADER DOCSTRING ARRAYSTORAGE-OBJECT
Package

cls-dataio

Source

import.lisp (file)

Function: fivnum X

Returns the five number summary (min, 1st quartile, medinan, 3rd quartile, max) of the elements X.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: fixnump X

Args: (x)

Returns T if X is a fixnum; NIL otherwise.

Package

lisp-stat-types

Source

lstypes.lisp (file)

Function: flatten-list ()

Flattens a list of lists into a single list. Only useful when we’ve mucked up data. Sign of usage means poor coding!

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: float X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: floor X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: fround X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: ftruncate X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: get-next-element ()

Get element i from seq x. FIXME: not really??

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: if-else A X Y

Args: (first x y)
Takes simple or compound data items A, X and Y and returns result of elementswise selection, from X if A is not NIL, otherwise from Y.

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: imagpart X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: interquartile-range X

Returns the interquartile range of the elements of X.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: iseq ()

Generate a sequence of consecutive integers from A to B.
With one argument returns a list of consecutive integers from 0 to N - 1. With two returns a list of consecutive integers from A to B inclusive. Example: (iseq 4) returns (0 1 2 3)
(iseq 3 7) returns (3 4 5 6 7)
(iseq 3 -3) returns (3 2 1 0 -1 -2 -3)

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: kind-of-p X Y

Args: (x y)

Returns T if X and Y are objects and X inherits from Y, NIL otherwise.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: load-data FILE

Args: (file) as string
Read in data file from the System DATA library. Return true if success, failure value otherwise.

Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Function: load-example FILE

Args: (file) as string
Read in lisp example file from the System EXAMPLES library.

Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Function: log X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: logand &optional X Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: logior &optional X Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: lognot X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: logxor &optional X Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: make-dataframe NEWDATA &key VARTYPES CASELABELS VARLABELS DOC

Helper function to use instead of make-instance to assure construction of proper DF-array. Needs some thought so we don’t have to use listoflist->array when creating a dataframe array so much

Package

cls-dataframe

Source

dataframe-functionality.lisp (file)

Function: make-labels INITSTR NUM

generate a list of strings which can be used as labels, i.e. something like (make-labels "a" 3) => ’("a1" "a2" "a3").

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: make-next-element ()

Encapsulates X as a list.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: make-object &rest PARENTS

Args: (&rest parents)
Returns a new object with parents PARENTS. If PARENTS is NIL, (list *OBJECT*) is used.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: makedouble X
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: map-elements ()

Args: (fcn &rest args)

Applies FCN elementwise. If no arguments are compound MAP-ELEMENTS acts like FUNCALL. Compound arguments must all be the same shape. Non compound arguments, in the presence of compound ones, are treated as if they were of the same shape as the compound items with constant data values.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: max X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: median X

Return median of X, using whatever the quantile generic function supports.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: min X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: minusp X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: mod X Y
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: objectp OBJECT

Args: (x)
Returns T if X is an object, NIL otherwise.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: oddp X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: order ()

Args (x)

Returns a sequence of the indices of elements in the sequence of numbers or strings X in order.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: ordered-nneg-seq ()

is x an ordered sequence of nonnegative positive integers?

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: permute-array X PERM

Args: (a p)
Returns a copy of the array A permuted according to the permutation P.

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: phase X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: plusp X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: pmax X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: pmin X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: prod &rest ARGS

Args: (&rest number-data)
Returns the product of all the elements of its arguments. Returns 1 if there are no arguments. Vector reducing.

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: proto-slot-value SLOT

Args: (slot)

Must be used in a method. Returns the value of current objects slot named SLOT.
EVIL – it conflicts with CLOS object slots.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Setf Expander

(setf proto-slot-value) (setf expander)

Setf Expander: (setf proto-slot-value) SLOT VALUE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Reader

proto-slot-value (function)

Writer

proto-slot-value-setf (function)

Function: random X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: rank ()

Args (x)
Returns a sequence with the elements of the list or array of numbers or strings X replaced by their ranks.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: realpart X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: recursive-map-elements ()

Args: (base-fcn fcn &rest args)

The same idea as MAP-ELEMENTS, except arguments are in a list and the base and recursive cases can use different functions. Modified to check for second level of compounding and use base-fcn if there is none.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: rem X Y
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: repeat ()

Args: (vals times)
Repeats VALS. If TIMES is a number and VALS is a non-null, non-array atom, a list of length TIMES with all elements eq to VALS is returned. If VALS is a list and TIMES is a number then VALS is appended TIMES times. If TIMES is a list of numbers then VALS must be a list of equal length and the simpler version of repeat is mapped down the two lists.
Examples: (repeat 2 5) returns (2 2 2 2 2)
(repeat ’(1 2) 3) returns (1 2 1 2 1 2)
(repeat ’(4 5 6) ’(1 2 3)) returns (4 5 5 6 6 6)
(repeat ’((4) (5 6)) ’(2 3)) returns (4 4 5 6 5 6 5 6)

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: round X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: rseq ()

Args: (a b num)
Returns a list of NUM equally spaced points starting at A and ending at B.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: run-lisp-stat-tests ()
Package

lisp-stat-unittests

Source

unittests.lisp (file)

Function: savevar VARS FILE &optional SUFFIX

Args: (vars-symbol-or-list file-name-root &optional suffix-string)

VARS is a symbol or a list of symbols. FILE-NAME-ROOT is a string (or a symbol whose print name is used) not ending in SUFFIX (defaults to ".lsp"). The VARS and their current values are written to the file FILE-NAME-ROOT.lsp in a form suitable for use with the load command.

Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Function: select ()

Args: (a &rest indices)

A can be a list or an array. If A is a list and INDICES is a single number then the appropriate element of A is returned. If is a list and INDICES is a list of numbers then the sublist of the corresponding elements is returned. If A in an array then the number of INDICES must match the ARRAY-RANK of A. If each index is a number then the appropriate array element is returned. Otherwise the INDICES must all be lists of numbers and the corresponding submatrix of A is returned. SELECT can be used in setf.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Setf Expander

(setf select) (setf expander)

Setf Expander: (setf select) ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Reader

select (function)

Writer

set-select (function)

Function: send OBJECT SELECTOR &rest ARGS

Args: (object selector &rest args)
Applies first method for SELECTOR found in OBJECT’s precedence list to OBJECT and ARGS.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: set-next-element ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: signum X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: sin X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: sinh X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: sort-data ()

Args: (sequence)

Returns a sequence with the numbers or strings in the sequence X in order.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: split-list ()

Args: (list cols)
Returns a list of COLS lists of equal length of the elements of LIST. Example: (split-list ’(1 2 3 4 5 6) 2) returns ((1 2 3) (4 5 6))

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: sqrt X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: sum &rest ARGS

Args: (&rest number-data)
Returns the sum of all the elements of its arguments. Returns 0 if there are no arguments. Vector reducing.

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: tan X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: tanh X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: truncate X &optional Y &rest ARGS
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: undef V

Args: (v)
If V is the symbol of a defined variable the variable it is unbound and removed from the list of defined variables. If V is a list of variable names each is unbound and removed. Returns V.

Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Function: variables ()

Args:()
Returns a list of the names of all def’ed variables to STREAM.

FIXME: THIS IS BROKEN – NEEDS TO ALSO PROVIDE PACKAGE LOCATION AS WELL!!

Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Function: varlabels DF

Variable-name handling for DATAFRAME-LIKE. Needs error checking.

Package

cls-dataframe

Source

dataframe.lisp (file)

Setf Expander

(setf varlabels) (setf expander)

Setf Expander: (setf varlabels) DF VL
Package

cls-dataframe

Source

dataframe.lisp (file)

Reader

varlabels (function)

Writer

set-varlabels (function)

Function: which ()

Args: (x)
Returns a list of the indices where elements of sequence X are not NIL.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: zerop X
Package

lisp-stat-math

Source

lsmath.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.4 Generic functions

Generic Function: dataset OBJECT
Generic Function: (setf dataset) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: dataset (DATAFRAME-LISTOFLIST dataframe-listoflist)
Method: (setf dataset) NEW-VALUE (DATAFRAME-LISTOFLIST dataframe-listoflist)

Data storage: typed as listoflist.

Source

dataframe-listoflist.lisp (file)

Method: dataset (DATAFRAME-MATRIXLIKE dataframe-matrixlike)
Method: (setf dataset) NEW-VALUE (DATAFRAME-MATRIXLIKE dataframe-matrixlike)

Data storage: typed as matrix-like (numerical only).

Source

dataframe-matrixlike.lisp (file)

Method: dataset (DATAFRAME-ARRAY dataframe-array)
Method: (setf dataset) NEW-VALUE (DATAFRAME-ARRAY dataframe-array)

Data storage: typed as array.

Source

dataframe-array.lisp (file)

Generic Function: dfcolumn DF VARIABLE

generic column getter

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: dfcolumn (DF dataframe-like) VARIABLE
Generic Function: dfrow DF ROW

generic row getter

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: dfrow (DF dataframe-like) ROW
Generic Function: mean X

compute the mean of lists, vectors, various
objects. Further subsetting should be done by sending the subsetted data

Package

lisp-stat-basics

Source

statistics.lisp (file)

Methods
Method: mean (X list)
Method: mean (X sequence)
Method: mean (X vector-like)
Generic Function: numerical= A B &key TOL
Package

lisp-stat-unittests

Source

unittests.lisp (file)

Methods
Method: numerical= (A array) (B array) &key TOL
Method: numerical= (A sequence) (B sequence) &key TOL
Method: numerical= (A complex) (B complex) &key TOL
Method: numerical= (A integer) (B integer) &key TOL
Method: numerical= (A real) (B real) &key TOL
Generic Function: quantile X P

Returns the P-th quantile(s) of sequence X as a
native lisp list (which could be fed into a vector-like or similar for the final format).

NOT OPTIMIZED. This approach uses the native Common Lisp sort, which is destructive. We can optimize space usage by using some form of rank computations instead.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Methods
Method: quantile (X sequence) (P real)
Method: quantile (X vector-like) (P real)
Method: quantile (X sequence) (P sequence)
Method: quantile (X vector-like) (P sequence)
Method: quantile (X vector-like) (P vector-like)
Generic Function: sample X N &optional REPLACE WEIGHTS

Draw a sample of size n from sequence x, with/out
replacement, with weights per element of x as described as a probability mass distribution vector. Length of weights should match length of X. Unclear if (= X (uniq X))? (possible issue). Return value shoud match the input values.

Package

lisp-stat-basics

Source

statistics.lisp (file)

Methods
Method: sample (X sequence) (N fixnum) &optional REPLACE WEIGHTS
Method: sample (X vector-like) (N fixnum) &optional REPLACE WEIGHTS
Generic Function: standard-deviation X

Compute standard deivation of entity X.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Methods
Method: standard-deviation (X vector-like)
Method: standard-deviation (X list)
Method: standard-deviation (X matrix-like)
Generic Function: variance X

compute the variance of the entity X, i.e. if a scalar, vector, or (covariance) matrix.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Methods
Method: variance (X sequence)
Method: variance (X vector-like)
Method: variance (X matrix-like)

Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.5 Structures

Structure: ls-object ()
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Direct superclasses

structure-object (structure)

Direct methods

print-object (method)

Direct slots
Slot: slots
Readers

ls-object-slots (function)

Writers

(setf ls-object-slots) (function)

Slot: methods
Readers

ls-object-methods (function)

Writers

(setf ls-object-methods) (function)

Slot: parents
Readers

ls-object-parents (function)

Writers

(setf ls-object-parents) (function)

Slot: preclist
Readers

ls-object-preclist (function)

Writers

(setf ls-object-preclist) (function)

Slot: serial
Initform

(incf lisp-stat-object-system::*object-serial*)

Readers

ls-object-serial (function)

Writers

(setf ls-object-serial) (function)


Previous: , Up: Exported definitions   [Contents][Index]

6.1.6 Classes

Class: dataframe-array ()

example implementation of dataframe-like using storage based on lisp arrays. An obvious alternative could be a dataframe-matrix-like which uses the lisp-matrix classes.

Package

cls-dataframe

Source

dataframe-array.lisp (file)

Direct superclasses

dataframe-like (class)

Direct methods
Direct slots
Slot: store

Data storage: typed as array.

Type

(array * *)

Initargs

:storage

Readers

dataset (generic function)

Writers

(setf dataset) (generic function)

Slot: store-class

Storage class is ARRAY.

Initform

(quote array)

Readers

store (generic function)

Writers

(setf store) (generic function)

Class: dataframe-like ()

Abstract class for standard statistical analysis
dataset for (possible conditionally, externally) independent data. Rows are considered to be independent, matching observations. Columns are considered to be type-consistent, match a variable with distribution. inherits from lisp-matrix base MATRIX-LIKE class. MATRIX-LIKE (from lisp-matrix) is basically a rectangular table without storage. We emulate that, and add storage, row/column labels, and within-column-typing.

DATAFRAME-LIKE is the basic cases by variables framework. Need to embed this within other structures which allow for generalized relations. Goal is to ensure that relations imply and drive the potential for statistical relativeness such as correlation, interference, and similar concepts.

So DATAFRAME-LIKE has column IDs (variable names), column types (variable class or type), row IDs (observation names and trackers), and a documentation string.

STORE is the storage component. We ignore this in the DATAFRAME-LIKE class, as it is the primary differentiator, spec’ing the structure used for storing the actual data. We create methods which depend on STORE for access. The only critical component is that STORE be a class which is xarray-compliant. Examples of such mixins are DATAFRAME-ARRAY and DATAFRAME-MATRIXLIKE. The rest of this structure is metadata.

Package

cls-dataframe

Source

dataframe.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses
Direct methods
Direct slots
Slot: var-types

List of symbols representing classes
which describe the range of contents for a particular variable. Symbols must be valid types for check-type, or be morally equivalent (to be discussed what this means later). List order matches order of columns in STORE. superceded by variables below.

Type

list

Initargs

:var-types

Readers

var-types (generic function)

Writers

(setf var-types) (generic function)

Slot: case-labels

labels used for describing cases (doc metadata), possibly used for merging.

Type

list

Initargs

:case-labels

Readers

case-labels (generic function)

Writers

(setf case-labels) (generic function)

Slot: var-labels

Variable names. List order matches
order in STORE. superceded by variables below

Type

list

Initargs

:var-labels

Readers

var-labels (generic function)

Writers

(setf var-labels) (generic function)

Slot: doc-string

additional information, potentially
uncomputable, possibly metadata, about dataframe-like instance.

Initargs

:doc

Readers

doc-string (generic function)

Writers

(setf doc-string) (generic function)

Slot: variables

a plist of the meta data for each variable.

Initargs

:variables

Initform

(list)

Readers

variables (generic function)

Writers

(setf variables) (generic function)

Slot: print-widths

the print widths of each of the variables.

Initargs

:print-widths

Readers

print-widths (generic function)

Writers

(setf print-widths) (generic function)


Previous: , Up: Definitions   [Contents][Index]

6.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.1 Special variables

Special Variable: *cls-asdf-dir*
Package

lisp-stat-config

Source

config.lisp (file)

Special Variable: *cls-date-format*

should be one of :UK (d/m/y) :US (m/d/y) or maybe others as required. Giving a hint to the parsing routine.SUffix with a -TIME (is :US-TIME for MDY hhmmss. Or supply the ANTIK specification as a list ’(2 1 0 3 4 5)

Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Special Variable: *cls-date-test-limit*

the number of rows to check when deciding if the column is a date column or not.

Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Special Variable: *cls-external-dir*
Package

lisp-stat-config

Source

config.lisp (file)

Special Variable: *current-preclist*
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Special Variable: *current-selector*
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Special Variable: *default-dataframe-class*
Package

cls-dataframe

Source

dataframe-array.lisp (file)

Special Variable: *ghcn-temperature-fields*
Package

cls-dataio

Source

import.lisp (file)

Special Variable: *lisp-stat-data-external-source-formats*
Package

cls-dataio

Source

import.lisp (file)

Special Variable: *lisp-stat-data-import-referencing-type*
Package

cls-dataio

Source

import.lisp (file)

Special Variable: *object-serial*
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Special Variable: *self*

special variable holding current value of SELF. Assigned with current object being worked on.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Special Variable: abrasion-loss
Package

lisp-stat-data-examples

Special Variable: absorpbtion
Package

lisp-stat-data-examples

Source

absorbtion.lisp (file)

Special Variable: absorption
Package

lisp-stat-data-examples

Special Variable: age
Package

lisp-stat-data-examples

Special Variable: air
Package

lisp-stat-data-examples

Special Variable: car-prices
Package

lisp-stat-data-examples

Source

car-prices.lisp (file)

Special Variable: co
Package

lisp-stat-data-examples

Special Variable: conc
Package

lisp-stat-data-examples

Special Variable: cpk
Package

lisp-stat-data-examples

Special Variable: dataframe-print-formats
Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Special Variable: density
Package

lisp-stat-data-examples

Special Variable: depth
Package

lisp-stat-data-examples

Special Variable: electric-heat
Package

lisp-stat-data-examples

Special Variable: ethanol
Package

lisp-stat-data-examples

Special Variable: failure-times
Package

lisp-stat-data-examples

Source

aircraft.lisp (file)

Special Variable: flow
Package

lisp-stat-data-examples

Special Variable: gas-heat
Package

lisp-stat-data-examples

Special Variable: gas1
Package

lisp-stat-data-examples

Special Variable: gas2
Package

lisp-stat-data-examples

Special Variable: hardness
Package

lisp-stat-data-examples

Special Variable: hc
Package

lisp-stat-data-examples

Special Variable: iris
Package

lisp-stat-data-examples

Special Variable: loss
Package

lisp-stat-data-examples

Special Variable: moist
Package

lisp-stat-data-examples

Special Variable: new-dataframe-print-formats
Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Special Variable: oxygen
Package

lisp-stat-data-examples

Special Variable: precipitation
Package

lisp-stat-data-examples

Special Variable: purchases
Package

lisp-stat-data-examples

Special Variable: query
Package

cls-dataframe

Source

dataframe-query.lisp (file)

Special Variable: randu
Package

lisp-stat-data-examples

Special Variable: rural
Package

lisp-stat-data-examples

Special Variable: separation
Package

lisp-stat-data-examples

Special Variable: sourcetypes

list of possible symbols.

Thsees are used to specify source formats that might be supported for input. CSV and TSV are standard, LISP refers to forms, and SPECIAL refers to a FUNCTION which parses as appropriately.

Package

cls-dataio

Source

import.lisp (file)

Special Variable: strength
Package

lisp-stat-data-examples

Special Variable: sugar
Package

lisp-stat-data-examples

Special Variable: temp
Package

lisp-stat-data-examples

Special Variable: tensile-strength
Package

lisp-stat-data-examples

Special Variable: times-pos
Package

lisp-stat-data-examples

Special Variable: transformed-wbc-pos
Package

lisp-stat-data-examples

Special Variable: travel-space
Package

lisp-stat-data-examples

Special Variable: urban
Package

lisp-stat-data-examples

Special Variable: variety
Package

lisp-stat-data-examples

Special Variable: varnames
Package

lisp-stat-data-examples

Special Variable: water
Package

lisp-stat-data-examples

Special Variable: wbc-pos
Package

lisp-stat-data-examples

Special Variable: x1
Package

lisp-stat-data-examples

Special Variable: x2
Package

lisp-stat-data-examples

Special Variable: y1
Package

lisp-stat-data-examples

Special Variable: y2
Package

lisp-stat-data-examples

Special Variable: yield
Package

lisp-stat-data-examples


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.2 Macros

Macro: build-dataframe TYPE
Package

cls-dataframe

Source

dataframe.lisp (file)

Macro: declare-double &rest VARS
Package

lisp-stat-macros

Source

lsmacros.lisp (file)

Macro: declare-double &rest VARS
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Macro: define-constant NAME VALUE &optional DOC
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Macro: defproto2 NAME &optional IVARS CVARS PARENTS DOC

Syntax (defproto name &optional ivars cvars (parent *object*) doc) Makes a new object prototype with instance variables IVARS, ’class’ variables CVARS and parents PARENT. PARENT can be a single object or a list of objects. IVARS and CVARS must be lists.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Macro: ffix X
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Macro: fix-base-doc DOC
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Macro: fixup-vectorized-doc-list SYM
Package

lisp-stat-macros

Source

lsmacros.lisp (file)

Macro: make-vectorized-function SYM FCN
Package

lisp-stat-macros

Source

lsmacros.lisp (file)

Macro: sequence-type ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Macro: test-query-lambda DF &rest QUERY
Package

cls-dataframe

Source

dataframe-query.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.3 Functions

Function: add-documentation X SYM VALUE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: add-lsos-method X SELECTOR VALUE

x = object; selector = name of method; value = form computing the method.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: add-slot X SLOT VALUE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: antik-date-format-helper DATE

provide decoding for shorthand notation in *CLS-DATE-FORMAT* or allow the full spec to be supplied.

Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: any-compound-elements ()

Checks for a compound element.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: assoc-eq ITEM ALIST

Version of assoc using eq – should be faster than regular assoc.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: build-format-string DF

build the format string by checking widths of each column. to be rewritten as a table

Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: calculate-preclist OBJECT

Return the precedence list for the object.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: calculate-quantile X P

a helper function for quantile

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: check-compound ()

Signals an error if X is not compound.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: check-dataframe-params DATA VARTYPES VARLABELS CASELABELS DOC

This will throw an exception (FIXME: Need to put together a CLS exception system, this could be part of it)

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: check-non-nil-symbol X
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: check-object X

Returns self if true, throws an error otherwise.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: check-parents PARENTS

Ensure valid parents: They must be null, object, or consp without duplicates.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: child-position X P

find the position of child, if any, of x in P, the list found so far.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: classify-print-type VARIABLE-TYPE

Look at the type of each column, assuming that types are homogenous of course, and assign a descriptive type - number, date, string etc, to enable for nice tabular printing.

VARIABLE-TYPE should be a lisp type. Which means that when we add a new lisp type for holding statistical/experimental data, we need to add dispatch here. Perhaps this would be better as a generic function, so that types do the right thing.

FIXME: These types are generally supposed to be LISP types, not STATISTICAL types. Though we could imagine having a print-type category.

FIXME: should we have a PRINT type classification? i.e. numbers, strings, factors, timeseries/longitudinal/kinetics category?

Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: cmpndp ()

Predicate to determine if argument is compound. Most common non-compound types are checked first.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: col-order-as-list ARY

Pull out data in column order into a list.

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: column-type-classifier DF COLUMN

column type classifier, finds the smallest subtype that can accomodate the elements of list, in the ordering:

fixnum < integer < float < complex < t

Rational, float (any kind) are classified as double-float, and complex numbers as (complex double-float). Meant to be used by dataframe constructors so we can guess at column data types. The presence of a non numeric in a column implies the column is represented as a non numeric, as reduces and numeric maps will fail.

AJR: David made a great start, and what we need to do is construct appropriate statistical types to support AI-style guidance for appropriate statistical procedures, or at least give caveats for why they are not appropriate.

By statistical types, I mean factors such as nominal, ordinal, as well as grouped observation structures such as profile-with-common-times, profile-with-heterogeneous-times, nestable-networks, separated-networks.

So there could be:

nominal < ordinal < fixnum < integer < ...

and for heterogeneous statistical components:

profile-with-common-times < profile-with-heterogeneous-times < profile-unrelated

nestable-networks < separated-networks

or we could call them:

network-with-common-features < network-with-no-common-features
Please note that the above is NOT finalized, nor necessarily correct.

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: compound-data-sequence ()

Returns sequence of data values for X.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: compound-data-shape ()

Needed but undefined??

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: convert-strings-to-data-types CL-ARRAY
Package

cls-dataio

Source

import.lisp (file)

Function: copy-df-rows DF ROWS
Package

cls-dataframe

Source

dataframe-query.lisp (file)

Function: copy-ls-object INSTANCE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: count-file-columns FNAME

Args: (fname)
Returns the number of lisp items on the first nonblank line of file FNAME.

Package

cls-dataio

Source

import.lisp (file)

Function: date-conversion-fu DF

for any string column in the dataframe, try to parse the first n entries as a date according to the global format. If we can do that successfully for at least one entry, the convert the column, converting failures to nil

Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: delete-method X SELECTOR
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: delete-slot X SLOT
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: determine-print-width DF COLUMN TYPE

build the format string by checking widths of each column in the dataframe DF based on COLUMN TYPE.

FIXME: MAKE-VARIABLE-METADATA is busted with respect to this computation, so simply using 10 at this point. See commentary above for the challenge.

Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: dfextract DF &key HEAD TAIL

just for the moment. (FIXME: resolve why originally a generic?).

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: dfquery DF QUERY
Package

cls-dataframe

Source

dataframe-query.lisp (file)

Function: extract-row DF ROW
Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: f1 THETA

The Michaelis-Menten function for the velocity of an enzymatic reaction as a function of the substrate concentration. THETA is a parameter vector of length 2 consisting of the asymptotic velocity and the concentration at which half the asymptotic velocity is attained.

Package

lisp-stat-data-examples

Source

puromycin.lisp (file)

Function: f2 THETA

The Michaelis-Menten function for the velocity of an enzymatic reaction as a function of the substrate concentration. THETA is a parameter vector of length 2 consisting of the asymptotic velocity and the concentration at which half the asymptotic velocity is attained.

Package

lisp-stat-data-examples

Source

puromycin.lisp (file)

Function: file.fixed->dataframe FILE FIELD-SPECIFICATION &optional DOCSTRING

this returns a record oriented file as a dataframe. The field-specification is of the form <start end fieldname type>. where type is defined by data format validation - ie string, integer, number, date and so on . dataframe metadata is created from this. At the moment different record types are not handled, though this is planned.

eg:

(file.fixed->dataframe "fixed.txt", *GHCN-TEMPERATURE-FIELDS*)

should work.

Package

cls-dataio

Source

import.lisp (file)

Function: find-compound-data ()

Returns first compound data item in LIST, or NIL if there is none.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: find-documentation X SYM ADD
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-instance-slots X SLOTS
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-lsos-method X SELECTOR
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-no-predecessor-list S R

find list of objects in S without predecessors, by R.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-own-method X SELECTOR
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-own-slot X SLOT
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-r S

find partial precedence ordering.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-rc OBJECT

find local precedence ordering.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-s OBJECT

find set of object and ancestors. (diff from this and find-SC?)

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-sc OBJECT

find set of object and ancestors. (diff from this and find-S?)

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: find-slot X SLOT
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: fix-base-fun-doc SYM BASE-SYM
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Function: fixup-map-elements-arglist ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: gen-seq N &optional START

Generates an integer sequence of length N starting at START. Used for indexing.

Possibly cleaner implementation:
(loop (i n)
(collect (+ i start)))

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: get-documentation X SYM
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: get-initial-proto-slot-value OBJECT SLOT
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: get-message-method X SELECTOR &optional NO-ERR
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: get-proto-slot-value X SLOT &optional NO-ERR
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: get-self ()

Return object we are operating on, otherwise throw error.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: has-duplicates LIST

predicate: takes a list, and returns true if duplicates. This should be simpler, right?

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: has-predecessor X R

check if x has a predecessor according to R.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: indices-from-rowmajor A K RESULT

Args: (a k result).
Compute indices in a from rowmajor index k, put in vector result.

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: infer-dataframe-types DF

infer the numeric types for each column in the dataframe. note that all non numerc types are lumped into T, so further discrimination will be required.

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: listoflist->dataframe LOL

Create a cases-by-variables data frame consisting of numeric data, from a ROW-MAJOR list-of-lists representation. A COLUMN-MAJOR representation should be handled using the transpose-listoflists function.

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: listoflist->matrix-like LOL &key ORIENTATION COERCE-TO

From a listoflists structure of numbers, return a matrix-like.

FIXME: need to verify that the listoflists is a valid structure (same size rows, typing if required, etc.

FIXME: need to grep special variables to make the right kind of matrix-like.

<example>
(defparameter *lol-ml-test*
(list (list 1d0 1d0 2.1d0)
(list 2d0 2d0 1.1d0)))
(length *lol-ml-test*)
(length (elt *lol-ml-test* 0))

(defparameter *lol-ml-result* (listoflist->matrix-like *lol-ml-test*)) (matrix-dimensions *lol-ml-result*)
</example>

Package

cls-dataframe

Source

dataframe-matrixlike.lisp (file)

Function: lk-sprob THETA
Package

lisp-stat-data-examples

Source

leukemia.lisp (file)

Function: ls-object-methods INSTANCE
Function: (setf ls-object-methods) VALUE INSTANCE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: ls-object-parents INSTANCE
Function: (setf ls-object-parents) VALUE INSTANCE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: ls-object-preclist INSTANCE
Function: (setf ls-object-preclist) VALUE INSTANCE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: ls-object-serial INSTANCE
Function: (setf ls-object-serial) VALUE INSTANCE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: ls-object-slots INSTANCE
Function: (setf ls-object-slots) VALUE INSTANCE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: make-basic-object PARENTS OBJECT

Creates a basic object for the prototype system by ensuring that it can be placed into the storage heirarchy.
If object is not initialized, instantiate the structure. Place into parental structure.
If parents is null, use root *object*,
if parents is a single object, use it (encapsulate as list) otherwise, use parents

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: make-circle ()

Make a circular list of one element.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: make-comparison-function DF FUNCTION FIELD VALUE
Package

cls-dataframe

Source

dataframe.lisp (file)

Function: make-compound-data ()

Construct a compound data item, matching the shape of the first argument. Shape referrs to the primary approach that we might have that we could use for each element in the sequence. This gets confusing, since compound data might be better done as a p-list rather than as a list of lists.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: make-method-entry X Y
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: make-object-structure &key (SLOTS SLOTS) (METHODS METHODS) (PARENTS PARENTS) (PRECLIST PRECLIST) (SERIAL SERIAL)
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: make-prototype OBJECT NAME IVARS CVARS DOC SET
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: make-query-lambda DF QUERY

not sure why it has to be compile and not backquote sharp quote.....

Package

cls-dataframe

Source

dataframe-query.lisp (file)

Function: make-slot-entry X Y
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: make-variable-metadata DF

This is a first attempt at consolidating the metadata for a variable. ultimately i expect that the other lists will disappear when I (DHodge?) figure out a convenient initiaslization method.

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: map-column DF FUNCTION COLUMN
Package

cls-dataframe

Source

dataframe.lisp (file)

Function: map-matrix FUNCTION M
Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: map-vector FUNCTION V
Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: matrix-covariance M

This is actually quite nice. Just not sure if its correct. too much consing though

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: matrix-mean M

the mean of the columns of a matrix, returned as a vector

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: matrix-sd M

standard deviation of the matrix

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: max-1 X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: maybe-rewrite-keyword DF KEYWORD

if we find the keyword is a column name translate it to the index value, otherwise leave it alone. Not entirely sure that this is the right thing. remove the t in translate-column for stricter behahviour

Package

cls-dataframe

Source

dataframe-query.lisp (file)

Function: mean-fn X

Args: (x)
Returns the mean of the elements x. Vector reducing.

XLS style.

FIXME: Why is this so complex? When figure out, put into generic. possible reasons to confirm: stable algorithm selection. typing. non-CL and more XLisp approach.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: method-entry-key X
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: method-entry-method X
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Setf Expander

(setf method-entry-method) (setf expander)

Setf Expander: (setf method-entry-method) X V
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Reader

method-entry-method (function)

Writer

set-method-entry-method (function)

Function: method-entry-p X
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: min-1 X
Package

lisp-stat-math

Source

lsmath.lisp (file)

Function: next-object NO-PREDS P

find the next object in the precedence list from objects with no predecessor and current list.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: old-rowmajor-index ()

translate row major index in resulting subarray to row major index in the original array.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: open-file-dialog ()
Package

cls-dataio

Source

import.lisp (file)

Function: path-string-to-path P S
Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Function: pathname-example NAME
Package

cls-dataio

Source

import.lisp (file)

Function: permute-indices X Y PERM CHECK

Args: (x y perm check).
permute x into y using perm; all should be vectors; If check is TRUE the routine will check to make sure no indices are reused, but x will be destroyed.

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: precedence-list OBJECT

Calculate the object’s precedence list.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: print-directive DF COL
Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: print-headings DF STREAM
Package

cls-dataframe

Source

dataframe-initialisation.lisp (file)

Function: print-object-structure OBJECT STREAM DEPTH
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: prod-1 X
Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: proto-slot-value-setf SLOT VALUE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Setf Expander

(setf proto-slot-value) (setf expander)

Function: reduce-column DF FUNCTION COLUMN

reduce a column of a df with function yielding a scalar

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: reduce-matrix FUNCTION M &key DIM

reduce a matrix yielding a vector

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: reduce-vector FUNCTION V

reduce a vector with function yielding a scalar

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: repeat-seq N ITEM

dbh: append/recursion changed to loop. It’s a cleaner way to go. (repeat-seq 3 "d") ; => ("d" "d" "d")
(repeat-seq 3 ’d) ; => (’d ’d ’d)
(repeat-seq 3 (list 1 2))

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: rewrite-column-keywords DF QUERY

look for keywords, if they are matched as part of the dataframe metdata, translate to an index number.

Package

cls-dataframe

Source

dataframe-query.lisp (file)

Function: row-order-as-list ARY

Pull out data in row order into a list. naughty, should use xref

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: sample-fn X SSIZE &optional REPLACE WEIGHTS

Args: (x n &optional (replace nil))
Returns a list of a random sample of size N from sequence X drawn with or without replacement.

IMPROVE: need to implement sampling with weights.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: sendmsg OBJECT SELECTOR PRECLIST ARGS
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: sequence-select ()

select or set the subsequence corresponding to the specified indices

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: set-caselabels DF CL

Case-name handling for DATAFRAME-LIKE. Needs error checking.

Package

cls-dataframe

Source

dataframe.lisp (file)

Setf Expander

(setf caselabels) (setf expander)

Function: set-method-entry-method X V
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Setf Expander

(setf method-entry-method) (setf expander)

Function: set-proto-slot-value X SLOT VALUE
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: set-select ()
Package

lisp-stat-compound-data

Source

compound.lisp (file)

Setf Expander

(setf select) (setf expander)

Function: set-slot-entry-value X V
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Setf Expander

(setf slot-entry-value) (setf expander)

Function: set-varlabels DF VL

Variable-name handling for DATAFRAME-LIKE. Needs error checking.

Package

cls-dataframe

Source

dataframe.lisp (file)

Setf Expander

(setf varlabels) (setf expander)

Function: set-vartypes DF VT
Package

cls-dataframe

Source

dataframe.lisp (file)

Function: slot-entry-key X
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: slot-entry-p X
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: slot-entry-value X
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Setf Expander

(setf slot-entry-value) (setf expander)

Setf Expander: (setf slot-entry-value) X V
Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Reader

slot-entry-value (function)

Writer

set-slot-entry-value (function)

Function: standard-deviation-old X

Args: (x)
Returns the standard deviation of the elements x. Vector reducing.

FIXME AJR: This should be redone as square-root of the variance, and defer to that structure for computation. The justification for this ’redo’ is that it holds for many generalized variance structures such as variance-covariance matrices.

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: string->number STR

Convert a string <str> representing a number to a number. A second value is returned indicating the success of the conversion. Examples: (string->number "123") ; => 123 t
(string->number "1.23") ; => 1.23 t

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: strsym->indexnum DF STRSYM

Returns a number indicating the DF column labelled by STRSYM. Probably should be generic/methods dispatching on DATAFRAME-LIKE type.

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: subarray-select ()

extract or set subarray for the indices from a displaced array a.

a : array
indexlist: ??
values :
nil :
set_values :

and it’s poorly documented.

Package

lisp-stat-compound-data

Source

compound.lisp (file)

Function: sum-1 X
Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: sum-vector V

sum the vector v

Package

lisp-stat-descriptive-statistics

Source

statistics.lisp (file)

Function: translate-column DF COLUMN &optional NIL-ON-ERROR

for production use, we would wrap this in a handler to enable entry of the correct column id. nil on error is for non interactive use

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: translate-index I RESULT X PERM INDICES OLDINDICES ILIST

Args: (i result x perm indices oldindices ilist).
Translate row major index in original array to row major index in new array. Use indices vectors and ilist for temporary storage.

Package

lisp-stat-basics

Source

lsbasics.lisp (file)

Function: transpose-array ARY

map NxM to MxN.

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: trim-r X R

Remove all pairs containing x from R. x is assumed to have no predecessors, so only the first position is checked.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: trim-s X S

Remove object x from S.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: use-lsos ()

Formerly set up to import lisp-stat-object-system into current package.

Package

lisp-stat-object-system

Source

lsobjects.lisp (file)

Function: variables-list ()

Return list of variables as a lisp list of strings.

Package

lisp-stat-data

Source

data-xls-compat.lisp (file)

Function: vartypes DF

list of types for each column

Package

cls-dataframe

Source

dataframe.lisp (file)

Function: xref-2indexlist DF INDEXLIST1 INDEXLIST2 &key RETURN-TYPE

return an array, row X col dims. FIXME TESTME

Package

cls-dataframe

Source

dataframe-listoflist.lisp (file)

Function: xref-case DF INDEX RETURN-TYPE

Returns row as sequence.

Package

cls-dataframe

Source

dataframe-listoflist.lisp (file)

Function: xref-var DF INDEX RETURN-TYPE

Returns the data in a single variable as type.
type = sequence, vector, vector-like (if valid numeric type) or dataframe.

Package

cls-dataframe

Source

dataframe-listoflist.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.4 Generic functions

Generic Function: case-labels OBJECT
Generic Function: (setf case-labels) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: case-labels (DATAFRAME-LIKE dataframe-like)
Method: (setf case-labels) NEW-VALUE (DATAFRAME-LIKE dataframe-like)

labels used for describing cases (doc metadata), possibly used for merging.

Source

dataframe.lisp (file)

Generic Function: consistent-dataframe-p DF

methods to check for consistency. Mostly of
internal interest, since ideally we’d have to use standard constructs to ensure that we do not get the dataframe structure misaligned.

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: consistent-dataframe-p OBJECT

General objects are not consistent dataframes!

Method: consistent-dataframe-p (DF dataframe-like)

At minimum, must dispatch on virtual-class.

Generic Function: data-export DATA TARGET-FORMAT TARGET-REFERENCING-TYPE

write data from stream srce, in format srce-frmt;
return a reftype, which could be a lisp-data-structure, a reference to such, or a lisp function which can be evaluated to generate either.

Package

cls-dataio

Source

import.lisp (file)

Generic Function: data-import SOURCE SOURCE-FORMAT REFERENCING-TYPE

read data from stream srce, in format srce-frmt;
return a reftype, which could be a lisp-data-structure, a reference to such, or a lisp function which can be evaluated to generate either.

Package

cls-dataio

Source

import.lisp (file)

Generic Function: dfgroupby DF VARIABLE

quick hack for summarise

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: dfgroupby (DF dataframe-array) VARIABLE

a quick hack for summarise.

Source

dataframe-array.lisp (file)

Generic Function: dfhead DF &optional ROWS
Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: dfhead (DF dataframe-array) &optional ROWS
Source

dataframe-array.lisp (file)

Generic Function: dfselect DF &optional CASES VARS INDICES

Extract the OR of cases, vars, or have a list of indices to extract

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: dfselect (DF dataframe-array) &optional CASES VARS INDICES
Source

dataframe-array.lisp (file)

Generic Function: dfsummarisebycategorie DF CATEGORY OBSERVATION FUNCTION

apply function to the observation in rows identifed by the category variable

Package

cls-dataframe

Source

dataframe.lisp (file)

Generic Function: dfsummarisebycategory DF CATEGORY OBSERVATION FUNCTION
Package

cls-dataframe

Methods
Method: dfsummarisebycategory (DF dataframe-like) CATEGORY OBSERVATION FUNCTION

apply function to the observation in rows identifed by the category variable

Source

dataframe-query.lisp (file)

Method: dfsummarisebycategory (DF dataframe-array) CATEGORY OBSERVATION FUNCTION
Source

dataframe-array.lisp (file)

Generic Function: doc-string OBJECT
Generic Function: (setf doc-string) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: doc-string (DATAFRAME-LIKE dataframe-like)
Method: (setf doc-string) NEW-VALUE (DATAFRAME-LIKE dataframe-like)

additional information, potentially
uncomputable, possibly metadata, about dataframe-like instance.

Source

dataframe.lisp (file)

Generic Function: draw OBJECT
Generic Function: (setf draw) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: draw (MODELBASED-VARIABLE modelbased-variable)
Method: (setf draw) NEW-VALUE (MODELBASED-VARIABLE modelbased-variable)

function for drawing an observation,
should take an optional RV arg for selecting the stream to draw from.

Source

data.lisp (file)

Generic Function: factor-levels OBJECT
Generic Function: (setf factor-levels) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: factor-levels (CATEGORICAL-STATISTICAL-VARIABLE categorical-statistical-variable)
Method: (setf factor-levels) NEW-VALUE (CATEGORICAL-STATISTICAL-VARIABLE categorical-statistical-variable)

the possible levels which the
variable may take. These should be a (possibly proper) superset of the actual current levels observed in the variable.

Source

data.lisp (file)

Generic Function: importdata SOURCE FEATURELIST

command to get data into CLS. Specific methods
will need to handle pathnames, internal data structures, and external services such as DBMS’s. We would like to be able to do thinks like:
(importData MyPathName ’(:formattype ’csvString)) (importData ’(sqlConnection :server host.domain.net :port 666) ’(:formattype ’table
and so on.

Package

cls-dataio

Source

import.lisp (file)

Methods
Method: importdata (DS array) (FMT list)
Generic Function: make-dataframe2 DATA &key VARTYPES VARLABELS CASELABELS DOC

testing generic dispatch. Data should be in table format desired for use.

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: make-dataframe2 (DATA dataframe-listoflist) &key VARTYPES VARLABELS CASELABELS DOC
Source

dataframe-listoflist.lisp (file)

Method: make-dataframe2 (DATA dataframe-matrixlike) &key VARTYPES VARLABELS CASELABELS DOC
Source

dataframe-matrixlike.lisp (file)

Method: make-dataframe2 (DATA dataframe-array) &key VARTYPES VARLABELS CASELABELS DOC
Source

dataframe-array.lisp (file)

Generic Function: measurement-types OBJECT
Generic Function: (setf measurement-types) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: measurement-types (STATISTICAL-OBSERVATION statistical-observation)
Method: (setf measurement-types) NEW-VALUE (STATISTICAL-OBSERVATION statistical-observation)

sequence of types corresponding
to the classes of entries which have been measured/recorded to form the observation.

Source

data.lisp (file)

Generic Function: ncases DF

number of cases (indep, or indep within context, observantions) within DF storage form.

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: ncases (DF dataframe-array)
Source

dataframe-array.lisp (file)

Method: ncases (DF simple-array)
Method: ncases (DF matrix-like)
Method: ncases (DF list)
Method: ncases (DF array)
Generic Function: nobs OBJECT
Generic Function: (setf nobs) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: nobs (EMPIRICAL-VARIABLE empirical-variable)
Method: (setf nobs) NEW-VALUE (EMPIRICAL-VARIABLE empirical-variable)

number of statistically
independent observations in the current context (assuming design, marginalization, and conditioning to create the current dataset from which this variable came from).

Source

data.lisp (file)

Method: nobs (STATISTICAL-VARIABLE statistical-variable)
Method: (setf nobs) NEW-VALUE (STATISTICAL-VARIABLE statistical-variable)

virtual class for statistical variables
(assuming design, marginalization, and conditioning to create the current dataset from which this variable came from).

Source

data.lisp (file)

Generic Function: nvars DF

number of variables represented in storage type.

Package

cls-dataframe

Source

dataframe.lisp (file)

Methods
Method: nvars (PRE-DF list)

specializes on inheritance from listoflist. This approach assumes that the list of list is in a coherent form, that is that it maps naturally to a rectangular array.

Source

dataframe-listoflist.lisp (file)

Method: nvars (DF dataframe-listoflist)

specializes on inheritance from listoflist. This approach assumes that the list of list is in a coherent form, that is that it maps naturally to a rectangular array.

Source

dataframe-listoflist.lisp (file)

Method: nvars (DF dataframe-array)
Source

dataframe-array.lisp (file)

Method: nvars (DF simple-array)
Method: nvars (DF dataframe-like)
Method: nvars (DF matrix-like)
Method: nvars (DF array)
Generic Function: ordering OBJECT
Generic Function: (setf ordering) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: ordering (ORDINAL-STATISTICAL-VARIABLE ordinal-statistical-variable)
Method: (setf ordering) NEW-VALUE (ORDINAL-STATISTICAL-VARIABLE ordinal-statistical-variable)

levels are completely ordered, and this
should be an ordered sequence (prefer array/vector?) of unique levels. (do we need a partially ordered variant?)

Source

data.lisp (file)

Generic Function: pdmf OBJECT
Generic Function: (setf pdmf) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: pdmf (MODELBASED-VARIABLE modelbased-variable)
Method: (setf pdmf) NEW-VALUE (MODELBASED-VARIABLE modelbased-variable)

core function indicating
probability of a set of observations

Source

data.lisp (file)

Generic Function: print-widths OBJECT
Generic Function: (setf print-widths) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: print-widths (DATAFRAME-LIKE dataframe-like)
Method: (setf print-widths) NEW-VALUE (DATAFRAME-LIKE dataframe-like)

the print widths of each of the variables.

Source

dataframe.lisp (file)

Generic Function: record OBJECT
Generic Function: (setf record) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: record (STATISTICAL-OBSERVATION statistical-observation)
Method: (setf record) NEW-VALUE (STATISTICAL-OBSERVATION statistical-observation)

the sequence of data which is a realization of the corresponding measurement type

Source

data.lisp (file)

Generic Function: store OBJECT
Generic Function: (setf store) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: store (DATAFRAME-ARRAY dataframe-array)
Method: (setf store) NEW-VALUE (DATAFRAME-ARRAY dataframe-array)

Storage class is ARRAY.

Source

dataframe-array.lisp (file)

Generic Function: support OBJECT
Generic Function: (setf support) NEW-VALUE OBJECT
Package

cls-data

Methods
Method: support (CONTINUOUS-STATISTICAL-VARIABLE continuous-statistical-variable)
Method: (setf support) NEW-VALUE (CONTINUOUS-STATISTICAL-VARIABLE continuous-statistical-variable)

Support is used in the sense of
probability support, and should be a range, list of ranges, t (indicating whole space), or nil (indicating measure-0 space).

Source

data.lisp (file)

Generic Function: var-labels OBJECT
Generic Function: (setf var-labels) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: var-labels (DATAFRAME-LIKE dataframe-like)
Method: (setf var-labels) NEW-VALUE (DATAFRAME-LIKE dataframe-like)

Variable names. List order matches
order in STORE. superceded by variables below

Source

dataframe.lisp (file)

Generic Function: var-types OBJECT
Generic Function: (setf var-types) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: var-types (DATAFRAME-LIKE dataframe-like)
Method: (setf var-types) NEW-VALUE (DATAFRAME-LIKE dataframe-like)

List of symbols representing classes
which describe the range of contents for a particular variable. Symbols must be valid types for check-type, or be morally equivalent (to be discussed what this means later). List order matches order of columns in STORE. superceded by variables below.

Source

dataframe.lisp (file)

Generic Function: variables OBJECT
Generic Function: (setf variables) NEW-VALUE OBJECT
Package

cls-dataframe

Methods
Method: variables (DATAFRAME-LIKE dataframe-like)
Method: (setf variables) NEW-VALUE (DATAFRAME-LIKE dataframe-like)

a plist of the meta data for each variable.

Source

dataframe.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.5 Classes

Class: categorical-statistical-variable ()
Package

cls-data

Source

data.lisp (file)

Direct superclasses

statistical-variable (class)

Direct subclasses

nominal-statistical-variable (class)

Direct methods
  • print-object (method)
  • factor-levels (method)
  • factor-levels (method)
Direct slots
Slot: factor-levels

the possible levels which the
variable may take. These should be a (possibly proper) superset of the actual current levels observed in the variable.

Type

sequence

Initargs

:factor-levels

Readers

factor-levels (generic function)

Writers

(setf factor-levels) (generic function)

Class: continuous-statistical-variable ()

empirical characteristics for a continuous statistical variable

Package

cls-data

Source

data.lisp (file)

Direct superclasses

statistical-variable (class)

Direct methods
  • support (method)
  • support (method)
Direct slots
Slot: support

Support is used in the sense of
probability support, and should be a range, list of ranges, t (indicating whole space), or nil (indicating measure-0 space).

Type

sequence

Readers

support (generic function)

Writers

(setf support) (generic function)

Class: dataframe-listoflist ()

Implementation of dataframe-like objects using list-of-list data storage.

Package

cls-dataframe

Source

dataframe-listoflist.lisp (file)

Direct superclasses

dataframe-like (class)

Direct methods
Direct slots
Slot: store

Data storage: typed as listoflist.

Type

list

Initargs

:storage

Readers

dataset (generic function)

Writers

(setf dataset) (generic function)

Class: dataframe-matrixlike ()

example implementation of dataframe-like using storage based on lisp-matrix structures.

Package

cls-dataframe

Source

dataframe-matrixlike.lisp (file)

Direct superclasses

dataframe-like (class)

Direct methods
  • xref (method)
  • xref (method)
  • ncols (method)
  • nrows (method)
  • make-dataframe2 (method)
  • dataset (method)
  • dataset (method)
Direct slots
Slot: store

Data storage: typed as matrix-like (numerical only).

Type

lisp-matrix:matrix-like

Initargs

:storage

Readers

dataset (generic function)

Writers

(setf dataset) (generic function)

Class: empirical-variable ()

mix-in class that indicating that we are working with a
statistical variable which arises from a actual set of observation or a virtual / hypothesized set).

Package

cls-data

Source

data.lisp (file)

Direct superclasses

statistical-variable (class)

Direct methods
  • nobs (method)
  • nobs (method)
Direct slots
Slot: number-of-observations

number of statistically
independent observations in the current context (assuming design, marginalization, and conditioning to create the current dataset from which this variable came from).

Initargs

:nobs

Initform

0

Readers

nobs (generic function)

Writers

(setf nobs) (generic function)

Class: lisp-stat-ut ()

top level CLS unittests.

Package

lisp-stat-unittests

Source

unittests.lisp (file)

Direct superclasses

test-mixin (class)

Direct subclasses
Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((108) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests.lisp")
Class: lisp-stat-ut-array ()
Package

lisp-stat-unittests

Source

unittests-arrays.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((115) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests-arrays.lisp")
Class: lisp-stat-ut-listoflist ()
Package

lisp-stat-unittests

Source

unittests-listoflist.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct slots
Slot: my-df-1
Initargs

:my-df-1

Initform

(make-instance (quote cls-dataframe:dataframe-array) :storage #2a((1.0d0 2.0d0 3.0d0 4.0d0) (10.0d0 20.0d0 30.0d0 40.0d0)) :doc "this is an interesting legal dataframe-array" :case-labels (list "x" "y") :var-labels (list "a" "b" "c" "d" "e"))

Slot: my-matlike-1
Initargs

:my-matlike-1

Initform

(lisp-matrix:make-matrix 2 4 :initial-element 0.0d0)

Slot: my-lol-1
Initargs

:my-lol-1

Initform

(quote ((0.0d0 1.0d0 2.0d0 3.0d0) (10.0d0 11.0d0 12.0d0 13.0d0)))

Direct Default Initargs
InitargValue
:test-source-file#a((119) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests-listoflist.lisp")
Class: lisp-stat-ut-proto ()
Package

lisp-stat-unittests

Source

unittests-proto.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((114) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests-proto.lisp")
Class: lisp-stat-ut-regression ()
Package

lisp-stat-unittests

Source

unittests-regression.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((119) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests-regression.lisp")
Class: lisp-stat-ut-spec-fns ()
Package

lisp-stat-unittests

Source

unittests-specfn.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((115) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests-specfn.lisp")
Class: lisp-stat-ut-testsupport ()
Package

lisp-stat-unittests

Source

unittests.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((108) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests.lisp")
Class: lisp-stat-ut-testsupport2 ()
Package

lisp-stat-unittests

Source

unittests.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((108) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests.lisp")
Class: lisp-stat-ut-types ()
Package

lisp-stat-unittests

Source

unittests-lstypes.lisp (file)

Direct superclasses

lisp-stat-ut (class)

Direct methods

setup-test (method)

Direct Default Initargs
InitargValue
:test-source-file#a((116) base-char . "/home/quickref/quicklisp/dists/quicklisp/software/common-lisp-stat-20180228-git/src/unittests/unittests-lstypes.lisp")
Class: modelbased-variable ()

model-based statistical variables have observations
which come from a model. Core information is simply how to compute probabilities, and how to draw a new realization. All else should be deriveable from these two. Possibly we need additional metadata for working with these?

Package

cls-data

Source

data.lisp (file)

Direct superclasses

statistical-variable (class)

Direct methods
  • draw (method)
  • draw (method)
  • pdmf (method)
  • pdmf (method)
Direct slots
Slot: density/mass-function

core function indicating
probability of a set of observations

Type

function

Initargs

:pdmf

Readers

pdmf (generic function)

Writers

(setf pdmf) (generic function)

Slot: draw-function

function for drawing an observation,
should take an optional RV arg for selecting the stream to draw from.

Type

function

Initargs

:drawf

Readers

draw (generic function)

Writers

(setf draw) (generic function)

Class: nominal-statistical-variable ()

currently identical to categorical variable, no true difference from the most general state.

Package

cls-data

Source

data.lisp (file)

Direct superclasses

categorical-statistical-variable (class)

Direct subclasses

ordinal-statistical-variable (class)

Class: observation-like ()

dataframe-like with only 1 row, is an observation-like.

Package

cls-dataframe

Source

dataframe.lisp (file)

Direct superclasses

dataframe-like (class)

Class: ordinal-statistical-variable ()

categorical variable whose levels are completely ordered.

Package

cls-data

Source

data.lisp (file)

Direct superclasses

nominal-statistical-variable (class)

Direct methods
Direct slots
Slot: ordering

levels are completely ordered, and this
should be an ordered sequence (prefer array/vector?) of unique levels. (do we need a partially ordered variant?)

Type

sequence

Initargs

:ordering

Readers

ordering (generic function)

Writers

(setf ordering) (generic function)

Class: statistical-observation ()

denotes a vector of measurements, not necesarily
simple (i.e. entries could be scalar, array, network) which can be assumed to be independent or at least conditionally independent given measurements external to the collected dataset. Failure of this condition implies a single observation, not multiple observations.

Package

cls-data

Source

data.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: measurement-types

sequence of types corresponding
to the classes of entries which have been measured/recorded to form the observation.

Type

sequence

Initargs

cls-data::measurement-types

Readers

measurement-types (generic function)

Writers

(setf measurement-types) (generic function)

Slot: record

the sequence of data which is a realization of the corresponding measurement type

Type

sequence

Initargs

cls-data::record

Readers

record (generic function)

Writers

(setf record) (generic function)

Class: statistical-variable ()

virtual class indicating that we are working with a
statistical variable (arising from a actual set of observation or a virtual / hypothesized set).

Package

cls-data

Source

data.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses
Direct methods
  • print-object (method)
  • nobs (method)
  • nobs (method)
Direct slots
Slot: number-of-observations

virtual class for statistical variables
(assuming design, marginalization, and conditioning to create the current dataset from which this variable came from).

Initargs

:nobs

Initform

0

Readers

nobs (generic function)

Writers

(setf nobs) (generic function)

Class: variable-like ()

dataframe-like with only 1 column is a variable-like.

Package

cls-dataframe

Source

dataframe.lisp (file)

Direct superclasses

dataframe-like (class)


Previous: , Up: Internal definitions   [Contents][Index]

6.2.6 Types

Type: stat-cfloat ()
Package

lisp-stat-float

Source

lsfloat.lisp (file)

Type: stat-float ()
Package

lisp-stat-float

Source

lsfloat.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L   M   O  
Index Entry  Section

C
cls.asd: The cls<dot>asd file
cls/cls-basics: The cls/cls-basics module
cls/cls-basics/lsbasics.lisp: The cls/cls-basics/lsbasics<dot>lisp file
cls/cls-core: The cls/cls-core module
cls/cls-core/compound.lisp: The cls/cls-core/compound<dot>lisp file
cls/cls-core/lsfloat.lisp: The cls/cls-core/lsfloat<dot>lisp file
cls/cls-core/lsmacros.lisp: The cls/cls-core/lsmacros<dot>lisp file
cls/cls-core/lsmath.lisp: The cls/cls-core/lsmath<dot>lisp file
cls/cls-core/lstypes.lisp: The cls/cls-core/lstypes<dot>lisp file
cls/descriptives: The cls/descriptives module
cls/descriptives/statistics.lisp: The cls/descriptives/statistics<dot>lisp file
cls/example-data: The cls/example-data module
cls/example-data/absorbtion.lisp: The cls/example-data/absorbtion<dot>lisp file
cls/example-data/aircraft.lisp: The cls/example-data/aircraft<dot>lisp file
cls/example-data/book.lisp: The cls/example-data/book<dot>lisp file
cls/example-data/car-prices.lisp: The cls/example-data/car-prices<dot>lisp file
cls/example-data/diabetes.lisp: The cls/example-data/diabetes<dot>lisp file
cls/example-data/examples.lisp: The cls/example-data/examples<dot>lisp file
cls/example-data/heating.lisp: The cls/example-data/heating<dot>lisp file
cls/example-data/iris.lisp: The cls/example-data/iris<dot>lisp file
cls/example-data/leukemia.lisp: The cls/example-data/leukemia<dot>lisp file
cls/example-data/metabolism.lisp: The cls/example-data/metabolism<dot>lisp file
cls/example-data/oxygen.lisp: The cls/example-data/oxygen<dot>lisp file
cls/example-data/puromycin.lisp: The cls/example-data/puromycin<dot>lisp file
cls/example-data/randu.lisp: The cls/example-data/randu<dot>lisp file
cls/example-data/stackloss.lisp: The cls/example-data/stackloss<dot>lisp file
cls/example-data/tutorial.lisp: The cls/example-data/tutorial<dot>lisp file
cls/LICENSE.mit: The cls/license<dot>mit file
cls/lisp-stat-unittest: The cls/lisp-stat-unittest module
cls/lisp-stat-unittest/unittests-arrays.lisp: The cls/lisp-stat-unittest/unittests-arrays<dot>lisp file
cls/lisp-stat-unittest/unittests-listoflist.lisp: The cls/lisp-stat-unittest/unittests-listoflist<dot>lisp file
cls/lisp-stat-unittest/unittests-lstypes.lisp: The cls/lisp-stat-unittest/unittests-lstypes<dot>lisp file
cls/lisp-stat-unittest/unittests-proto.lisp: The cls/lisp-stat-unittest/unittests-proto<dot>lisp file
cls/lisp-stat-unittest/unittests-regression.lisp: The cls/lisp-stat-unittest/unittests-regression<dot>lisp file
cls/lisp-stat-unittest/unittests-specfn.lisp: The cls/lisp-stat-unittest/unittests-specfn<dot>lisp file
cls/lisp-stat-unittest/unittests.lisp: The cls/lisp-stat-unittest/unittests<dot>lisp file
cls/lisp-stat-unittest2: The cls/lisp-stat-unittest2 module
cls/lisp-stat-unittest2/unittests2.lisp: The cls/lisp-stat-unittest2/unittests2<dot>lisp file
cls/packaging: The cls/packaging module
cls/packaging/config.lisp: The cls/packaging/config<dot>lisp file
cls/packaging/packages.lisp: The cls/packaging/packages<dot>lisp file
cls/proto-objects: The cls/proto-objects module
cls/proto-objects/lsobjects.lisp: The cls/proto-objects/lsobjects<dot>lisp file
cls/README.org: The cls/readme<dot>org file
cls/stat-data: The cls/stat-data module
cls/stat-data/data-xls-compat.lisp: The cls/stat-data/data-xls-compat<dot>lisp file
cls/stat-data/data.lisp: The cls/stat-data/data<dot>lisp file
cls/stat-data/dataframe-array.lisp: The cls/stat-data/dataframe-array<dot>lisp file
cls/stat-data/dataframe-functionality.lisp: The cls/stat-data/dataframe-functionality<dot>lisp file
cls/stat-data/dataframe-initialisation.lisp: The cls/stat-data/dataframe-initialisation<dot>lisp file
cls/stat-data/dataframe-listoflist.lisp: The cls/stat-data/dataframe-listoflist<dot>lisp file
cls/stat-data/dataframe-matrixlike.lisp: The cls/stat-data/dataframe-matrixlike<dot>lisp file
cls/stat-data/dataframe-query.lisp: The cls/stat-data/dataframe-query<dot>lisp file
cls/stat-data/dataframe.lisp: The cls/stat-data/dataframe<dot>lisp file
cls/stat-data/import.lisp: The cls/stat-data/import<dot>lisp file
cls/version: The cls/version file

F
File, Lisp, cls.asd: The cls<dot>asd file
File, Lisp, cls/cls-basics/lsbasics.lisp: The cls/cls-basics/lsbasics<dot>lisp file
File, Lisp, cls/cls-core/compound.lisp: The cls/cls-core/compound<dot>lisp file
File, Lisp, cls/cls-core/lsfloat.lisp: The cls/cls-core/lsfloat<dot>lisp file
File, Lisp, cls/cls-core/lsmacros.lisp: The cls/cls-core/lsmacros<dot>lisp file
File, Lisp, cls/cls-core/lsmath.lisp: The cls/cls-core/lsmath<dot>lisp file
File, Lisp, cls/cls-core/lstypes.lisp: The cls/cls-core/lstypes<dot>lisp file
File, Lisp, cls/descriptives/statistics.lisp: The cls/descriptives/statistics<dot>lisp file
File, Lisp, cls/example-data/absorbtion.lisp: The cls/example-data/absorbtion<dot>lisp file
File, Lisp, cls/example-data/aircraft.lisp: The cls/example-data/aircraft<dot>lisp file
File, Lisp, cls/example-data/book.lisp: The cls/example-data/book<dot>lisp file
File, Lisp, cls/example-data/car-prices.lisp: The cls/example-data/car-prices<dot>lisp file
File, Lisp, cls/example-data/diabetes.lisp: The cls/example-data/diabetes<dot>lisp file
File, Lisp, cls/example-data/examples.lisp: The cls/example-data/examples<dot>lisp file
File, Lisp, cls/example-data/heating.lisp: The cls/example-data/heating<dot>lisp file
File, Lisp, cls/example-data/iris.lisp: The cls/example-data/iris<dot>lisp file
File, Lisp, cls/example-data/leukemia.lisp: The cls/example-data/leukemia<dot>lisp file
File, Lisp, cls/example-data/metabolism.lisp: The cls/example-data/metabolism<dot>lisp file
File, Lisp, cls/example-data/oxygen.lisp: The cls/example-data/oxygen<dot>lisp file
File, Lisp, cls/example-data/puromycin.lisp: The cls/example-data/puromycin<dot>lisp file
File, Lisp, cls/example-data/randu.lisp: The cls/example-data/randu<dot>lisp file
File, Lisp, cls/example-data/stackloss.lisp: The cls/example-data/stackloss<dot>lisp file
File, Lisp, cls/example-data/tutorial.lisp: The cls/example-data/tutorial<dot>lisp file
File, Lisp, cls/lisp-stat-unittest/unittests-arrays.lisp: The cls/lisp-stat-unittest/unittests-arrays<dot>lisp file
File, Lisp, cls/lisp-stat-unittest/unittests-listoflist.lisp: The cls/lisp-stat-unittest/unittests-listoflist<dot>lisp file
File, Lisp, cls/lisp-stat-unittest/unittests-lstypes.lisp: The cls/lisp-stat-unittest/unittests-lstypes<dot>lisp file
File, Lisp, cls/lisp-stat-unittest/unittests-proto.lisp: The cls/lisp-stat-unittest/unittests-proto<dot>lisp file
File, Lisp, cls/lisp-stat-unittest/unittests-regression.lisp: The cls/lisp-stat-unittest/unittests-regression<dot>lisp file
File, Lisp, cls/lisp-stat-unittest/unittests-specfn.lisp: The cls/lisp-stat-unittest/unittests-specfn<dot>lisp file
File, Lisp, cls/lisp-stat-unittest/unittests.lisp: The cls/lisp-stat-unittest/unittests<dot>lisp file
File, Lisp, cls/lisp-stat-unittest2/unittests2.lisp: The cls/lisp-stat-unittest2/unittests2<dot>lisp file
File, Lisp, cls/packaging/config.lisp: The cls/packaging/config<dot>lisp file
File, Lisp, cls/packaging/packages.lisp: The cls/packaging/packages<dot>lisp file
File, Lisp, cls/proto-objects/lsobjects.lisp: The cls/proto-objects/lsobjects<dot>lisp file
File, Lisp, cls/stat-data/data-xls-compat.lisp: The cls/stat-data/data-xls-compat<dot>lisp file
File, Lisp, cls/stat-data/data.lisp: The cls/stat-data/data<dot>lisp file
File, Lisp, cls/stat-data/dataframe-array.lisp: The cls/stat-data/dataframe-array<dot>lisp file
File, Lisp, cls/stat-data/dataframe-functionality.lisp: The cls/stat-data/dataframe-functionality<dot>lisp file
File, Lisp, cls/stat-data/dataframe-initialisation.lisp: The cls/stat-data/dataframe-initialisation<dot>lisp file
File, Lisp, cls/stat-data/dataframe-listoflist.lisp: The cls/stat-data/dataframe-listoflist<dot>lisp file
File, Lisp, cls/stat-data/dataframe-matrixlike.lisp: The cls/stat-data/dataframe-matrixlike<dot>lisp file
File, Lisp, cls/stat-data/dataframe-query.lisp: The cls/stat-data/dataframe-query<dot>lisp file
File, Lisp, cls/stat-data/dataframe.lisp: The cls/stat-data/dataframe<dot>lisp file
File, Lisp, cls/stat-data/import.lisp: The cls/stat-data/import<dot>lisp file
File, other, cls/LICENSE.mit: The cls/license<dot>mit file
File, other, cls/README.org: The cls/readme<dot>org file
File, other, cls/version: The cls/version file

L
Lisp File, cls.asd: The cls<dot>asd file
Lisp File, cls/cls-basics/lsbasics.lisp: The cls/cls-basics/lsbasics<dot>lisp file
Lisp File, cls/cls-core/compound.lisp: The cls/cls-core/compound<dot>lisp file
Lisp File, cls/cls-core/lsfloat.lisp: The cls/cls-core/lsfloat<dot>lisp file
Lisp File, cls/cls-core/lsmacros.lisp: The cls/cls-core/lsmacros<dot>lisp file
Lisp File, cls/cls-core/lsmath.lisp: The cls/cls-core/lsmath<dot>lisp file
Lisp File, cls/cls-core/lstypes.lisp: The cls/cls-core/lstypes<dot>lisp file
Lisp File, cls/descriptives/statistics.lisp: The cls/descriptives/statistics<dot>lisp file
Lisp File, cls/example-data/absorbtion.lisp: The cls/example-data/absorbtion<dot>lisp file
Lisp File, cls/example-data/aircraft.lisp: The cls/example-data/aircraft<dot>lisp file
Lisp File, cls/example-data/book.lisp: The cls/example-data/book<dot>lisp file
Lisp File, cls/example-data/car-prices.lisp: The cls/example-data/car-prices<dot>lisp file
Lisp File, cls/example-data/diabetes.lisp: The cls/example-data/diabetes<dot>lisp file
Lisp File, cls/example-data/examples.lisp: The cls/example-data/examples<dot>lisp file
Lisp File, cls/example-data/heating.lisp: The cls/example-data/heating<dot>lisp file
Lisp File, cls/example-data/iris.lisp: The cls/example-data/iris<dot>lisp file
Lisp File, cls/example-data/leukemia.lisp: The cls/example-data/leukemia<dot>lisp file
Lisp File, cls/example-data/metabolism.lisp: The cls/example-data/metabolism<dot>lisp file
Lisp File, cls/example-data/oxygen.lisp: The cls/example-data/oxygen<dot>lisp file
Lisp File, cls/example-data/puromycin.lisp: The cls/example-data/puromycin<dot>lisp file
Lisp File, cls/example-data/randu.lisp: The cls/example-data/randu<dot>lisp file
Lisp File, cls/example-data/stackloss.lisp: The cls/example-data/stackloss<dot>lisp file
Lisp File, cls/example-data/tutorial.lisp: The cls/example-data/tutorial<dot>lisp file
Lisp File, cls/lisp-stat-unittest/unittests-arrays.lisp: The cls/lisp-stat-unittest/unittests-arrays<dot>lisp file
Lisp File, cls/lisp-stat-unittest/unittests-listoflist.lisp: The cls/lisp-stat-unittest/unittests-listoflist<dot>lisp file
Lisp File, cls/lisp-stat-unittest/unittests-lstypes.lisp: The cls/lisp-stat-unittest/unittests-lstypes<dot>lisp file
Lisp File, cls/lisp-stat-unittest/unittests-proto.lisp: The cls/lisp-stat-unittest/unittests-proto<dot>lisp file
Lisp File, cls/lisp-stat-unittest/unittests-regression.lisp: The cls/lisp-stat-unittest/unittests-regression<dot>lisp file
Lisp File, cls/lisp-stat-unittest/unittests-specfn.lisp: The cls/lisp-stat-unittest/unittests-specfn<dot>lisp file
Lisp File, cls/lisp-stat-unittest/unittests.lisp: The cls/lisp-stat-unittest/unittests<dot>lisp file
Lisp File, cls/lisp-stat-unittest2/unittests2.lisp: The cls/lisp-stat-unittest2/unittests2<dot>lisp file
Lisp File, cls/packaging/config.lisp: The cls/packaging/config<dot>lisp file
Lisp File, cls/packaging/packages.lisp: The cls/packaging/packages<dot>lisp file
Lisp File, cls/proto-objects/lsobjects.lisp: The cls/proto-objects/lsobjects<dot>lisp file
Lisp File, cls/stat-data/data-xls-compat.lisp: The cls/stat-data/data-xls-compat<dot>lisp file
Lisp File, cls/stat-data/data.lisp: The cls/stat-data/data<dot>lisp file
Lisp File, cls/stat-data/dataframe-array.lisp: The cls/stat-data/dataframe-array<dot>lisp file
Lisp File, cls/stat-data/dataframe-functionality.lisp: The cls/stat-data/dataframe-functionality<dot>lisp file
Lisp File, cls/stat-data/dataframe-initialisation.lisp: The cls/stat-data/dataframe-initialisation<dot>lisp file
Lisp File, cls/stat-data/dataframe-listoflist.lisp: The cls/stat-data/dataframe-listoflist<dot>lisp file
Lisp File, cls/stat-data/dataframe-matrixlike.lisp: The cls/stat-data/dataframe-matrixlike<dot>lisp file
Lisp File, cls/stat-data/dataframe-query.lisp: The cls/stat-data/dataframe-query<dot>lisp file
Lisp File, cls/stat-data/dataframe.lisp: The cls/stat-data/dataframe<dot>lisp file
Lisp File, cls/stat-data/import.lisp: The cls/stat-data/import<dot>lisp file

M
Module, cls/cls-basics: The cls/cls-basics module
Module, cls/cls-core: The cls/cls-core module
Module, cls/descriptives: The cls/descriptives module
Module, cls/example-data: The cls/example-data module
Module, cls/lisp-stat-unittest: The cls/lisp-stat-unittest module
Module, cls/lisp-stat-unittest2: The cls/lisp-stat-unittest2 module
Module, cls/packaging: The cls/packaging module
Module, cls/proto-objects: The cls/proto-objects module
Module, cls/stat-data: The cls/stat-data module

O
Other File, cls/LICENSE.mit: The cls/license<dot>mit file
Other File, cls/README.org: The cls/readme<dot>org file
Other File, cls/version: The cls/version file

Jump to:   C   F   L   M   O  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (   *   +   -   /   1   <   =   >   ^  
A   B   C   D   E   F   G   H   I   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Z  
Index Entry  Section

(
(setf case-labels): Internal generic functions
(setf case-labels): Internal generic functions
(setf caselabels): Exported functions
(setf dataset): Exported generic functions
(setf dataset): Exported generic functions
(setf dataset): Exported generic functions
(setf dataset): Exported generic functions
(setf doc-string): Internal generic functions
(setf doc-string): Internal generic functions
(setf draw): Internal generic functions
(setf draw): Internal generic functions
(setf factor-levels): Internal generic functions
(setf factor-levels): Internal generic functions
(setf ls-object-methods): Internal functions
(setf ls-object-parents): Internal functions
(setf ls-object-preclist): Internal functions
(setf ls-object-serial): Internal functions
(setf ls-object-slots): Internal functions
(setf measurement-types): Internal generic functions
(setf measurement-types): Internal generic functions
(setf method-entry-method): Internal functions
(setf nobs): Internal generic functions
(setf nobs): Internal generic functions
(setf nobs): Internal generic functions
(setf ordering): Internal generic functions
(setf ordering): Internal generic functions
(setf pdmf): Internal generic functions
(setf pdmf): Internal generic functions
(setf print-widths): Internal generic functions
(setf print-widths): Internal generic functions
(setf proto-slot-value): Exported functions
(setf record): Internal generic functions
(setf record): Internal generic functions
(setf select): Exported functions
(setf slot-entry-value): Internal functions
(setf store): Internal generic functions
(setf store): Internal generic functions
(setf support): Internal generic functions
(setf support): Internal generic functions
(setf var-labels): Internal generic functions
(setf var-labels): Internal generic functions
(setf var-types): Internal generic functions
(setf var-types): Internal generic functions
(setf variables): Internal generic functions
(setf variables): Internal generic functions
(setf varlabels): Exported functions

*
*: Exported functions
**: Exported functions

+
+: Exported functions

-
-: Exported functions

/
/: Exported functions
/=: Exported functions

1
1+: Exported functions
1-: Exported functions

<
<: Exported functions
<=: Exported functions

=
=: Exported functions

>
>: Exported functions
>=: Exported functions

^
^: Exported functions

A
abs: Exported functions
acos: Exported functions
acosh: Exported functions
add-documentation: Internal functions
add-lsos-method: Internal functions
add-slot: Internal functions
almost=: Exported functions
almost=lists: Exported functions
antik-date-format-helper: Internal functions
any-compound-elements: Internal functions
asin: Exported functions
asinh: Exported functions
assoc-eq: Internal functions
atan: Exported functions
atanh: Exported functions

B
base-abs: Exported functions
base-acos: Exported functions
base-acosh: Exported functions
base-asin: Exported functions
base-asinh: Exported functions
base-atan: Exported functions
base-atanh: Exported functions
base-cis: Exported functions
base-cos: Exported functions
base-cosh: Exported functions
base-exp: Exported functions
base-expt: Exported functions
base-fceiling: Exported functions
base-ffloor: Exported functions
base-float: Exported functions
base-fround: Exported functions
base-ftruncate: Exported functions
base-log: Exported functions
base-phase: Exported functions
base-signum: Exported functions
base-sin: Exported functions
base-sinh: Exported functions
base-sqrt: Exported functions
base-tan: Exported functions
base-tanh: Exported functions
build-dataframe: Internal macros
build-format-string: Internal functions

C
calculate-preclist: Internal functions
calculate-quantile: Internal functions
call-method: Exported functions
call-next-method: Exported functions
case-labels: Internal generic functions
case-labels: Internal generic functions
caselabels: Exported functions
ceiling: Exported functions
check-compound: Internal functions
check-dataframe-params: Internal functions
check-non-nil-symbol: Internal functions
check-nonneg-fixnum: Exported functions
check-object: Internal functions
check-one-fixnum: Exported functions
check-one-nonneg-fixnum: Exported functions
check-one-number: Exported functions
check-one-real: Exported functions
check-parents: Internal functions
check-sequence: Exported functions
child-position: Internal functions
cis: Exported functions
classify-print-type: Internal functions
cmpndp: Internal functions
col-order-as-list: Internal functions
column-type-classifier: Internal functions
compound-data-length: Exported functions
compound-data-p: Exported functions
compound-data-seq: Exported functions
compound-data-sequence: Internal functions
compound-data-shape: Internal functions
compound-object-p: Exported functions
conjugate: Exported functions
consistent-dataframe-p: Internal generic functions
consistent-dataframe-p: Internal generic functions
consistent-dataframe-p: Internal generic functions
convert-strings-to-data-types: Internal functions
copy-df-rows: Internal functions
copy-ls-object: Internal functions
cos: Exported functions
cosh: Exported functions
count-elements: Exported functions
count-file-columns: Internal functions

D
data-export: Internal generic functions
data-import: Internal generic functions
dataset: Exported generic functions
dataset: Exported generic functions
dataset: Exported generic functions
dataset: Exported generic functions
date-conversion-fu: Internal functions
declare-double: Internal macros
declare-double: Internal macros
def: Exported macros
define-constant: Internal macros
defmeth: Exported macros
defproto: Exported macros
defproto2: Internal macros
delete-method: Internal functions
delete-slot: Internal functions
determine-print-width: Internal functions
dfcolumn: Exported generic functions
dfcolumn: Exported generic functions
dfextract: Internal functions
dfgroupby: Internal generic functions
dfgroupby: Internal generic functions
dfhead: Internal generic functions
dfhead: Internal generic functions
dfquery: Internal functions
dfrow: Exported generic functions
dfrow: Exported generic functions
dfselect: Internal generic functions
dfselect: Internal generic functions
dfsummarisebycategorie: Internal generic functions
dfsummarisebycategory: Internal generic functions
dfsummarisebycategory: Internal generic functions
dfsummarisebycategory: Internal generic functions
difference: Exported functions
doc-string: Internal generic functions
doc-string: Internal generic functions
draw: Internal generic functions
draw: Internal generic functions

E
element-list: Exported functions
element-seq: Exported functions
evenp: Exported functions
exp: Exported functions
expt: Exported functions
extract-row: Internal functions

F
f1: Internal functions
f2: Internal functions
factor-levels: Internal generic functions
factor-levels: Internal generic functions
fceiling: Exported functions
ffix: Internal macros
ffloor: Exported functions
file.fixed->dataframe: Internal functions
filename.dsv->dataframe: Exported functions
find-compound-data: Internal functions
find-documentation: Internal functions
find-instance-slots: Internal functions
find-lsos-method: Internal functions
find-no-predecessor-list: Internal functions
find-own-method: Internal functions
find-own-slot: Internal functions
find-r: Internal functions
find-rc: Internal functions
find-s: Internal functions
find-sc: Internal functions
find-slot: Internal functions
fivnum: Exported functions
fix-base-doc: Internal macros
fix-base-fun-doc: Internal functions
fixnump: Exported functions
fixup-map-elements-arglist: Internal functions
fixup-vectorized-doc-list: Internal macros
flatten-list: Exported functions
float: Exported functions
floor: Exported functions
fround: Exported functions
ftruncate: Exported functions
Function, (setf ls-object-methods): Internal functions
Function, (setf ls-object-parents): Internal functions
Function, (setf ls-object-preclist): Internal functions
Function, (setf ls-object-serial): Internal functions
Function, (setf ls-object-slots): Internal functions
Function, *: Exported functions
Function, **: Exported functions
Function, +: Exported functions
Function, -: Exported functions
Function, /: Exported functions
Function, /=: Exported functions
Function, 1+: Exported functions
Function, 1-: Exported functions
Function, <: Exported functions
Function, <=: Exported functions
Function, =: Exported functions
Function, >: Exported functions
Function, >=: Exported functions
Function, abs: Exported functions
Function, acos: Exported functions
Function, acosh: Exported functions
Function, add-documentation: Internal functions
Function, add-lsos-method: Internal functions
Function, add-slot: Internal functions
Function, almost=: Exported functions
Function, almost=lists: Exported functions
Function, antik-date-format-helper: Internal functions
Function, any-compound-elements: Internal functions
Function, asin: Exported functions
Function, asinh: Exported functions
Function, assoc-eq: Internal functions
Function, atan: Exported functions
Function, atanh: Exported functions
Function, base-abs: Exported functions
Function, base-acos: Exported functions
Function, base-acosh: Exported functions
Function, base-asin: Exported functions
Function, base-asinh: Exported functions
Function, base-atan: Exported functions
Function, base-atanh: Exported functions
Function, base-cis: Exported functions
Function, base-cos: Exported functions
Function, base-cosh: Exported functions
Function, base-exp: Exported functions
Function, base-expt: Exported functions
Function, base-fceiling: Exported functions
Function, base-ffloor: Exported functions
Function, base-float: Exported functions
Function, base-fround: Exported functions
Function, base-ftruncate: Exported functions
Function, base-log: Exported functions
Function, base-phase: Exported functions
Function, base-signum: Exported functions
Function, base-sin: Exported functions
Function, base-sinh: Exported functions
Function, base-sqrt: Exported functions
Function, base-tan: Exported functions
Function, base-tanh: Exported functions
Function, build-format-string: Internal functions
Function, calculate-preclist: Internal functions
Function, calculate-quantile: Internal functions
Function, call-method: Exported functions
Function, call-next-method: Exported functions
Function, caselabels: Exported functions
Function, ceiling: Exported functions
Function, check-compound: Internal functions
Function, check-dataframe-params: Internal functions
Function, check-non-nil-symbol: Internal functions
Function, check-nonneg-fixnum: Exported functions
Function, check-object: Internal functions
Function, check-one-fixnum: Exported functions
Function, check-one-nonneg-fixnum: Exported functions
Function, check-one-number: Exported functions
Function, check-one-real: Exported functions
Function, check-parents: Internal functions
Function, check-sequence: Exported functions
Function, child-position: Internal functions
Function, cis: Exported functions
Function, classify-print-type: Internal functions
Function, cmpndp: Internal functions
Function, col-order-as-list: Internal functions
Function, column-type-classifier: Internal functions
Function, compound-data-length: Exported functions
Function, compound-data-p: Exported functions
Function, compound-data-seq: Exported functions
Function, compound-data-sequence: Internal functions
Function, compound-data-shape: Internal functions
Function, compound-object-p: Exported functions
Function, conjugate: Exported functions
Function, convert-strings-to-data-types: Internal functions
Function, copy-df-rows: Internal functions
Function, copy-ls-object: Internal functions
Function, cos: Exported functions
Function, cosh: Exported functions
Function, count-elements: Exported functions
Function, count-file-columns: Internal functions
Function, date-conversion-fu: Internal functions
Function, delete-method: Internal functions
Function, delete-slot: Internal functions
Function, determine-print-width: Internal functions
Function, dfextract: Internal functions
Function, dfquery: Internal functions
Function, difference: Exported functions
Function, element-list: Exported functions
Function, element-seq: Exported functions
Function, evenp: Exported functions
Function, exp: Exported functions
Function, expt: Exported functions
Function, extract-row: Internal functions
Function, f1: Internal functions
Function, f2: Internal functions
Function, fceiling: Exported functions
Function, ffloor: Exported functions
Function, file.fixed->dataframe: Internal functions
Function, filename.dsv->dataframe: Exported functions
Function, find-compound-data: Internal functions
Function, find-documentation: Internal functions
Function, find-instance-slots: Internal functions
Function, find-lsos-method: Internal functions
Function, find-no-predecessor-list: Internal functions
Function, find-own-method: Internal functions
Function, find-own-slot: Internal functions
Function, find-r: Internal functions
Function, find-rc: Internal functions
Function, find-s: Internal functions
Function, find-sc: Internal functions
Function, find-slot: Internal functions
Function, fivnum: Exported functions
Function, fix-base-fun-doc: Internal functions
Function, fixnump: Exported functions
Function, fixup-map-elements-arglist: Internal functions
Function, flatten-list: Exported functions
Function, float: Exported functions
Function, floor: Exported functions
Function, fround: Exported functions
Function, ftruncate: Exported functions
Function, gen-seq: Internal functions
Function, get-documentation: Internal functions
Function, get-initial-proto-slot-value: Internal functions
Function, get-message-method: Internal functions
Function, get-next-element: Exported functions
Function, get-proto-slot-value: Internal functions
Function, get-self: Internal functions
Function, has-duplicates: Internal functions
Function, has-predecessor: Internal functions
Function, if-else: Exported functions
Function, imagpart: Exported functions
Function, indices-from-rowmajor: Internal functions
Function, infer-dataframe-types: Internal functions
Function, interquartile-range: Exported functions
Function, iseq: Exported functions
Function, kind-of-p: Exported functions
Function, listoflist->dataframe: Internal functions
Function, listoflist->matrix-like: Internal functions
Function, lk-sprob: Internal functions
Function, load-data: Exported functions
Function, load-example: Exported functions
Function, log: Exported functions
Function, logand: Exported functions
Function, logior: Exported functions
Function, lognot: Exported functions
Function, logxor: Exported functions
Function, ls-object-methods: Internal functions
Function, ls-object-parents: Internal functions
Function, ls-object-preclist: Internal functions
Function, ls-object-serial: Internal functions
Function, ls-object-slots: Internal functions
Function, make-basic-object: Internal functions
Function, make-circle: Internal functions
Function, make-comparison-function: Internal functions
Function, make-compound-data: Internal functions
Function, make-dataframe: Exported functions
Function, make-labels: Exported functions
Function, make-method-entry: Internal functions
Function, make-next-element: Exported functions
Function, make-object: Exported functions
Function, make-object-structure: Internal functions
Function, make-prototype: Internal functions
Function, make-query-lambda: Internal functions
Function, make-slot-entry: Internal functions
Function, make-variable-metadata: Internal functions
Function, makedouble: Exported functions
Function, map-column: Internal functions
Function, map-elements: Exported functions
Function, map-matrix: Internal functions
Function, map-vector: Internal functions
Function, matrix-covariance: Internal functions
Function, matrix-mean: Internal functions
Function, matrix-sd: Internal functions
Function, max: Exported functions
Function, max-1: Internal functions
Function, maybe-rewrite-keyword: Internal functions
Function, mean-fn: Internal functions
Function, median: Exported functions
Function, method-entry-key: Internal functions
Function, method-entry-method: Internal functions
Function, method-entry-p: Internal functions
Function, min: Exported functions
Function, min-1: Internal functions
Function, minusp: Exported functions
Function, mod: Exported functions
Function, next-object: Internal functions
Function, objectp: Exported functions
Function, oddp: Exported functions
Function, old-rowmajor-index: Internal functions
Function, open-file-dialog: Internal functions
Function, order: Exported functions
Function, ordered-nneg-seq: Exported functions
Function, path-string-to-path: Internal functions
Function, pathname-example: Internal functions
Function, permute-array: Exported functions
Function, permute-indices: Internal functions
Function, phase: Exported functions
Function, plusp: Exported functions
Function, pmax: Exported functions
Function, pmin: Exported functions
Function, precedence-list: Internal functions
Function, print-directive: Internal functions
Function, print-headings: Internal functions
Function, print-object-structure: Internal functions
Function, prod: Exported functions
Function, prod-1: Internal functions
Function, proto-slot-value: Exported functions
Function, proto-slot-value-setf: Internal functions
Function, random: Exported functions
Function, rank: Exported functions
Function, realpart: Exported functions
Function, recursive-map-elements: Exported functions
Function, reduce-column: Internal functions
Function, reduce-matrix: Internal functions
Function, reduce-vector: Internal functions
Function, rem: Exported functions
Function, repeat: Exported functions
Function, repeat-seq: Internal functions
Function, rewrite-column-keywords: Internal functions
Function, round: Exported functions
Function, row-order-as-list: Internal functions
Function, rseq: Exported functions
Function, run-lisp-stat-tests: Exported functions
Function, sample-fn: Internal functions
Function, savevar: Exported functions
Function, select: Exported functions
Function, send: Exported functions
Function, sendmsg: Internal functions
Function, sequence-select: Internal functions
Function, set-caselabels: Internal functions
Function, set-method-entry-method: Internal functions
Function, set-next-element: Exported functions
Function, set-proto-slot-value: Internal functions
Function, set-select: Internal functions
Function, set-slot-entry-value: Internal functions
Function, set-varlabels: Internal functions
Function, set-vartypes: Internal functions
Function, signum: Exported functions
Function, sin: Exported functions
Function, sinh: Exported functions
Function, slot-entry-key: Internal functions
Function, slot-entry-p: Internal functions
Function, slot-entry-value: Internal functions
Function, sort-data: Exported functions
Function, split-list: Exported functions
Function, sqrt: Exported functions
Function, standard-deviation-old: Internal functions
Function, string->number: Internal functions
Function, strsym->indexnum: Internal functions
Function, subarray-select: Internal functions
Function, sum: Exported functions
Function, sum-1: Internal functions
Function, sum-vector: Internal functions
Function, tan: Exported functions
Function, tanh: Exported functions
Function, translate-column: Internal functions
Function, translate-index: Internal functions
Function, transpose-array: Internal functions
Function, trim-r: Internal functions
Function, trim-s: Internal functions
Function, truncate: Exported functions
Function, undef: Exported functions
Function, use-lsos: Internal functions
Function, variables: Exported functions
Function, variables-list: Internal functions
Function, varlabels: Exported functions
Function, vartypes: Internal functions
Function, which: Exported functions
Function, xref-2indexlist: Internal functions
Function, xref-case: Internal functions
Function, xref-var: Internal functions
Function, zerop: Exported functions
Function, ^: Exported functions

G
gen-seq: Internal functions
Generic Function, (setf case-labels): Internal generic functions
Generic Function, (setf dataset): Exported generic functions
Generic Function, (setf doc-string): Internal generic functions
Generic Function, (setf draw): Internal generic functions
Generic Function, (setf factor-levels): Internal generic functions
Generic Function, (setf measurement-types): Internal generic functions
Generic Function, (setf nobs): Internal generic functions
Generic Function, (setf ordering): Internal generic functions
Generic Function, (setf pdmf): Internal generic functions
Generic Function, (setf print-widths): Internal generic functions
Generic Function, (setf record): Internal generic functions
Generic Function, (setf store): Internal generic functions
Generic Function, (setf support): Internal generic functions
Generic Function, (setf var-labels): Internal generic functions
Generic Function, (setf var-types): Internal generic functions
Generic Function, (setf variables): Internal generic functions
Generic Function, case-labels: Internal generic functions
Generic Function, consistent-dataframe-p: Internal generic functions
Generic Function, data-export: Internal generic functions
Generic Function, data-import: Internal generic functions
Generic Function, dataset: Exported generic functions
Generic Function, dfcolumn: Exported generic functions
Generic Function, dfgroupby: Internal generic functions
Generic Function, dfhead: Internal generic functions
Generic Function, dfrow: Exported generic functions
Generic Function, dfselect: Internal generic functions
Generic Function, dfsummarisebycategorie: Internal generic functions
Generic Function, dfsummarisebycategory: Internal generic functions
Generic Function, doc-string: Internal generic functions
Generic Function, draw: Internal generic functions
Generic Function, factor-levels: Internal generic functions
Generic Function, importdata: Internal generic functions
Generic Function, make-dataframe2: Internal generic functions
Generic Function, mean: Exported generic functions
Generic Function, measurement-types: Internal generic functions
Generic Function, ncases: Internal generic functions
Generic Function, nobs: Internal generic functions
Generic Function, numerical=: Exported generic functions
Generic Function, nvars: Internal generic functions
Generic Function, ordering: Internal generic functions
Generic Function, pdmf: Internal generic functions
Generic Function, print-widths: Internal generic functions
Generic Function, quantile: Exported generic functions
Generic Function, record: Internal generic functions
Generic Function, sample: Exported generic functions
Generic Function, standard-deviation: Exported generic functions
Generic Function, store: Internal generic functions
Generic Function, support: Internal generic functions
Generic Function, var-labels: Internal generic functions
Generic Function, var-types: Internal generic functions
Generic Function, variables: Internal generic functions
Generic Function, variance: Exported generic functions
get-documentation: Internal functions
get-initial-proto-slot-value: Internal functions
get-message-method: Internal functions
get-next-element: Exported functions
get-proto-slot-value: Internal functions
get-self: Internal functions

H
has-duplicates: Internal functions
has-predecessor: Internal functions

I
if-else: Exported functions
imagpart: Exported functions
importdata: Internal generic functions
importdata: Internal generic functions
indices-from-rowmajor: Internal functions
infer-dataframe-types: Internal functions
interquartile-range: Exported functions
iseq: Exported functions

K
kind-of-p: Exported functions

L
listoflist->dataframe: Internal functions
listoflist->matrix-like: Internal functions
lk-sprob: Internal functions
load-data: Exported functions
load-example: Exported functions
log: Exported functions
logand: Exported functions
logior: Exported functions
lognot: Exported functions
logxor: Exported functions
ls-object-methods: Internal functions
ls-object-parents: Internal functions
ls-object-preclist: Internal functions
ls-object-serial: Internal functions
ls-object-slots: Internal functions

M
Macro, build-dataframe: Internal macros
Macro, declare-double: Internal macros
Macro, declare-double: Internal macros
Macro, def: Exported macros
Macro, define-constant: Internal macros
Macro, defmeth: Exported macros
Macro, defproto: Exported macros
Macro, defproto2: Internal macros
Macro, ffix: Internal macros
Macro, fix-base-doc: Internal macros
Macro, fixup-vectorized-doc-list: Internal macros
Macro, make-base-trans-fun: Exported macros
Macro, make-base-trans-fun-2: Exported macros
Macro, make-rv-function: Exported macros
Macro, make-rv-function-1: Exported macros
Macro, make-vectorized-function: Internal macros
Macro, sequence-type: Internal macros
Macro, test-query-lambda: Internal macros
make-base-trans-fun: Exported macros
make-base-trans-fun-2: Exported macros
make-basic-object: Internal functions
make-circle: Internal functions
make-comparison-function: Internal functions
make-compound-data: Internal functions
make-dataframe: Exported functions
make-dataframe2: Internal generic functions
make-dataframe2: Internal generic functions
make-dataframe2: Internal generic functions
make-dataframe2: Internal generic functions
make-labels: Exported functions
make-method-entry: Internal functions
make-next-element: Exported functions
make-object: Exported functions
make-object-structure: Internal functions
make-prototype: Internal functions
make-query-lambda: Internal functions
make-rv-function: Exported macros
make-rv-function-1: Exported macros
make-slot-entry: Internal functions
make-variable-metadata: Internal functions
make-vectorized-function: Internal macros
makedouble: Exported functions
map-column: Internal functions
map-elements: Exported functions
map-matrix: Internal functions
map-vector: Internal functions
matrix-covariance: Internal functions
matrix-mean: Internal functions
matrix-sd: Internal functions
max: Exported functions
max-1: Internal functions
maybe-rewrite-keyword: Internal functions
mean: Exported generic functions
mean: Exported generic functions
mean: Exported generic functions
mean: Exported generic functions
mean-fn: Internal functions
measurement-types: Internal generic functions
measurement-types: Internal generic functions
median: Exported functions
Method, (setf case-labels): Internal generic functions
Method, (setf dataset): Exported generic functions
Method, (setf dataset): Exported generic functions
Method, (setf dataset): Exported generic functions
Method, (setf doc-string): Internal generic functions
Method, (setf draw): Internal generic functions
Method, (setf factor-levels): Internal generic functions
Method, (setf measurement-types): Internal generic functions
Method, (setf nobs): Internal generic functions
Method, (setf nobs): Internal generic functions
Method, (setf ordering): Internal generic functions
Method, (setf pdmf): Internal generic functions
Method, (setf print-widths): Internal generic functions
Method, (setf record): Internal generic functions
Method, (setf store): Internal generic functions
Method, (setf support): Internal generic functions
Method, (setf var-labels): Internal generic functions
Method, (setf var-types): Internal generic functions
Method, (setf variables): Internal generic functions
Method, case-labels: Internal generic functions
Method, consistent-dataframe-p: Internal generic functions
Method, consistent-dataframe-p: Internal generic functions
Method, dataset: Exported generic functions
Method, dataset: Exported generic functions
Method, dataset: Exported generic functions
Method, dfcolumn: Exported generic functions
Method, dfgroupby: Internal generic functions
Method, dfhead: Internal generic functions
Method, dfrow: Exported generic functions
Method, dfselect: Internal generic functions
Method, dfsummarisebycategory: Internal generic functions
Method, dfsummarisebycategory: Internal generic functions
Method, doc-string: Internal generic functions
Method, draw: Internal generic functions
Method, factor-levels: Internal generic functions
Method, importdata: Internal generic functions
Method, make-dataframe2: Internal generic functions
Method, make-dataframe2: Internal generic functions
Method, make-dataframe2: Internal generic functions
Method, mean: Exported generic functions
Method, mean: Exported generic functions
Method, mean: Exported generic functions
Method, measurement-types: Internal generic functions
Method, ncases: Internal generic functions
Method, ncases: Internal generic functions
Method, ncases: Internal generic functions
Method, ncases: Internal generic functions
Method, ncases: Internal generic functions
Method, nobs: Internal generic functions
Method, nobs: Internal generic functions
Method, numerical=: Exported generic functions
Method, numerical=: Exported generic functions
Method, numerical=: Exported generic functions
Method, numerical=: Exported generic functions
Method, numerical=: Exported generic functions
Method, nvars: Internal generic functions
Method, nvars: Internal generic functions
Method, nvars: Internal generic functions
Method, nvars: Internal generic functions
Method, nvars: Internal generic functions
Method, nvars: Internal generic functions
Method, nvars: Internal generic functions
Method, ordering: Internal generic functions
Method, pdmf: Internal generic functions
Method, print-widths: Internal generic functions
Method, quantile: Exported generic functions
Method, quantile: Exported generic functions
Method, quantile: Exported generic functions
Method, quantile: Exported generic functions
Method, quantile: Exported generic functions
Method, record: Internal generic functions
Method, sample: Exported generic functions
Method, sample: Exported generic functions
Method, standard-deviation: Exported generic functions
Method, standard-deviation: Exported generic functions
Method, standard-deviation: Exported generic functions
Method, store: Internal generic functions
Method, support: Internal generic functions
Method, var-labels: Internal generic functions
Method, var-types: Internal generic functions
Method, variables: Internal generic functions
Method, variance: Exported generic functions
Method, variance: Exported generic functions
Method, variance: Exported generic functions
method-entry-key: Internal functions
method-entry-method: Internal functions
method-entry-p: Internal functions
min: Exported functions
min-1: Internal functions
minusp: Exported functions
mod: Exported functions

N
ncases: Internal generic functions
ncases: Internal generic functions
ncases: Internal generic functions
ncases: Internal generic functions
ncases: Internal generic functions
ncases: Internal generic functions
next-object: Internal functions
nobs: Internal generic functions
nobs: Internal generic functions
nobs: Internal generic functions
numerical=: Exported generic functions
numerical=: Exported generic functions
numerical=: Exported generic functions
numerical=: Exported generic functions
numerical=: Exported generic functions
numerical=: Exported generic functions
nvars: Internal generic functions
nvars: Internal generic functions
nvars: Internal generic functions
nvars: Internal generic functions
nvars: Internal generic functions
nvars: Internal generic functions
nvars: Internal generic functions
nvars: Internal generic functions

O
objectp: Exported functions
oddp: Exported functions
old-rowmajor-index: Internal functions
open-file-dialog: Internal functions
order: Exported functions
ordered-nneg-seq: Exported functions
ordering: Internal generic functions
ordering: Internal generic functions

P
path-string-to-path: Internal functions
pathname-example: Internal functions
pdmf: Internal generic functions
pdmf: Internal generic functions
permute-array: Exported functions
permute-indices: Internal functions
phase: Exported functions
plusp: Exported functions
pmax: Exported functions
pmin: Exported functions
precedence-list: Internal functions
print-directive: Internal functions
print-headings: Internal functions
print-object-structure: Internal functions
print-widths: Internal generic functions
print-widths: Internal generic functions
prod: Exported functions
prod-1: Internal functions
proto-slot-value: Exported functions
proto-slot-value-setf: Internal functions

Q
quantile: Exported generic functions
quantile: Exported generic functions
quantile: Exported generic functions
quantile: Exported generic functions
quantile: Exported generic functions
quantile: Exported generic functions

R
random: Exported functions
rank: Exported functions
realpart: Exported functions
record: Internal generic functions
record: Internal generic functions
recursive-map-elements: Exported functions
reduce-column: Internal functions
reduce-matrix: Internal functions
reduce-vector: Internal functions
rem: Exported functions
repeat: Exported functions
repeat-seq: Internal functions
rewrite-column-keywords: Internal functions
round: Exported functions
row-order-as-list: Internal functions
rseq: Exported functions
run-lisp-stat-tests: Exported functions

S
sample: Exported generic functions
sample: Exported generic functions
sample: Exported generic functions
sample-fn: Internal functions
savevar: Exported functions
select: Exported functions
send: Exported functions
sendmsg: Internal functions
sequence-select: Internal functions
sequence-type: Internal macros
set-caselabels: Internal functions
set-method-entry-method: Internal functions
set-next-element: Exported functions
set-proto-slot-value: Internal functions
set-select: Internal functions
set-slot-entry-value: Internal functions
set-varlabels: Internal functions
set-vartypes: Internal functions
Setf Expander, (setf caselabels): Exported functions
Setf Expander, (setf method-entry-method): Internal functions
Setf Expander, (setf proto-slot-value): Exported functions
Setf Expander, (setf select): Exported functions
Setf Expander, (setf slot-entry-value): Internal functions
Setf Expander, (setf varlabels): Exported functions
signum: Exported functions
sin: Exported functions
sinh: Exported functions
slot-entry-key: Internal functions
slot-entry-p: Internal functions
slot-entry-value: Internal functions
sort-data: Exported functions
split-list: Exported functions
sqrt: Exported functions
standard-deviation: Exported generic functions
standard-deviation: Exported generic functions
standard-deviation: Exported generic functions
standard-deviation: Exported generic functions
standard-deviation-old: Internal functions
store: Internal generic functions
store: Internal generic functions
string->number: Internal functions
strsym->indexnum: Internal functions
subarray-select: Internal functions
sum: Exported functions
sum-1: Internal functions
sum-vector: Internal functions
support: Internal generic functions
support: Internal generic functions

T
tan: Exported functions
tanh: Exported functions
test-query-lambda: Internal macros
translate-column: Internal functions
translate-index: Internal functions
transpose-array: Internal functions
trim-r: Internal functions
trim-s: Internal functions
truncate: Exported functions

U
undef: Exported functions
use-lsos: Internal functions

V
var-labels: Internal generic functions
var-labels: Internal generic functions
var-types: Internal generic functions
var-types: Internal generic functions
variables: Exported functions
variables: Internal generic functions
variables: Internal generic functions
variables-list: Internal functions
variance: Exported generic functions
variance: Exported generic functions
variance: Exported generic functions
variance: Exported generic functions
varlabels: Exported functions
vartypes: Internal functions

W
which: Exported functions

X
xref-2indexlist: Internal functions
xref-case: Internal functions
xref-var: Internal functions

Z
zerop: Exported functions

Jump to:   (   *   +   -   /   1   <   =   >   ^  
A   B   C   D   E   F   G   H   I   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Z  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *   +  
A   C   D   E   F   G   H   I   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y  
Index Entry  Section

*
*ask-on-redefine*: Exported special variables
*cls-asdf-dir*: Internal special variables
*cls-data-dir*: Exported special variables
*cls-date-format*: Internal special variables