Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gsll
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antonio Juan
gsll
Commits
46e1e734
Commit
46e1e734
authored
13 years ago
by
Liam M. Healy
Browse files
Options
Downloads
Patches
Plain Diff
Test ntuple in histogram by writing the data to a temporary file, then reading the file
parent
ee46e1e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
documentation/index.html
+6
-4
6 additions, 4 deletions
documentation/index.html
gsll.asd
+3
-2
3 additions, 2 deletions
gsll.asd
histogram/ntuple.lisp
+12
-8
12 additions, 8 deletions
histogram/ntuple.lisp
tests/ntuple.lisp
+2
-2
2 additions, 2 deletions
tests/ntuple.lisp
with
23 additions
and
16 deletions
documentation/index.html
+
6
−
4
View file @
46e1e734
...
...
@@ -122,6 +122,7 @@ combination for which the following are supported:</p>
</li>
<li><a
href=
"http://www.cliki.net/trivial-garbage"
>
trivial-garbage
</a>
<li><a
href=
"http://repo.or.cz/w/antik.git"
>
Antik
</a><li><a
href=
"http://www.cliki.net/asdf"
>
ASDF
</a></li>
<li>
Osicat
</li>
<li><a
href=
"http://repo.or.cz/w/lisp-unit.git"
>
lisp-unit
</a>
,
<i>
(Optional)
</i>
necessary
to run
<code>
gsll-tests
</code>
</li>
...
...
@@ -152,9 +153,10 @@ combination for which the following are supported:</p>
and
<code>
libffi-dev
</code>
. Once they are installed and you have
loaded the quicklisp file:
<pre>
(ql:quickload "gsll
-tests
")
</pre>
(ql:quickload "gsll")
</pre>
<p>
To test your installation:
<pre>
(ql:quickload "lisp-unit")
(in-package :gsl)
(lisp-unit:run-tests)
</pre>
<p>
The result should look something like:
...
...
@@ -167,8 +169,8 @@ AIRY: 73 assertions passed, 0 failed.</pre>
VECTOR-VARIANCE-WITH-MEAN: 10 assertions passed, 0 failed.
WEIBULL: 60 assertions passed, 0 failed.
ZETA: 6 assertions passed, 0 failed.
TOTAL: 40
19
assertions passed, 1 failed, 0 execution errors.
</pre>
<p>
You may see more failures.
TOTAL: 40
22
assertions passed, 1 failed, 0 execution errors.
</pre>
<p>
You may see more failures
; if you are not on a 64 bit platform you will see fewer assertions
.
<h3>
License
</h3>
<p>
...
...
@@ -343,7 +345,7 @@ four-digit number; please attach them all to your email.
<!-- Created: Feb 25 2005 -->
<!-- hhmts start -->
<small>
Time-stamp:
<
2011
-08-1
7
01
:00:1
5
EDT
index.html
>
Time-stamp:
<
2011
-08-1
9
10
:00:
4
1EDT
index.html
>
</small>
<!-- hhmts end -->
</div>
...
...
This diff is collapsed.
Click to expand it.
gsll.asd
+
3
−
2
View file @
46e1e734
;; Definition of GSLL system
;; Liam Healy
;; Time-stamp: <2011-0
1-30 10:41:57ES
T gsll.asd>
;; Time-stamp: <2011-0
8-19 08:59:15ED
T gsll.asd>
;;
;; Copyright 2006, 2007, 2008, 2009, 2010, 2011 Liam M. Healy
;; Distributed under the terms of the GNU General Public License
...
...
@@ -30,7 +30,8 @@
:version
"0"
:author
"Liam M. Healy"
:licence
"GPL v3"
:depends-on
(
antik
cffi-grovel
trivial-garbage
alexandria
#+
fsbv
fsbv
)
:depends-on
(
antik
cffi-grovel
trivial-garbage
alexandria
#+
fsbv
fsbv
osicat
)
:components
((
:module
init
:components
...
...
This diff is collapsed.
Click to expand it.
histogram/ntuple.lisp
+
12
−
8
View file @
46e1e734
;; N-tuples
;; Liam Healy Sat Feb 3 2007 - 12:53
;; Time-stamp: <2011-0
5-26 12:37:35
EDT ntuple.lisp>
;; Time-stamp: <2011-0
8-19 09:44:16
EDT ntuple.lisp>
;;
;; Copyright 2007, 2008, 2009 Liam M. Healy
;; Copyright 2007, 2008, 2009
, 2011
Liam M. Healy
;; Distributed under the terms of the GNU General Public License
;;
;; This program is free software: you can redistribute it and/or modify
...
...
@@ -159,10 +159,8 @@
(
defparameter
*ntuple-example-data-file*
(
namestring
(
merge-pathnames
"ntuple-example.dat"
(
asdf:component-pathname
(
asdf:find-component
(
asdf:find-system
:gsll
)
"histogram"
))))
(
merge-pathnames
"ntuple-example.dat"
osicat::*temporary-directory*
))
;;(asdf:system-relative-pathname :gsll #p"histogram/ntuple-example.dat")
"The full path string of the ntuple example data file. This can be created
with the function #'make-ntuple-example-data."
)
...
...
@@ -238,6 +236,12 @@
(
unless
(
=
(
grid:aref
histo
row
)
(
aref
answer
row
))
(
return
nil
))))))
(
save-test
ntuple
(
ntuple-example-read
)
(
defun
ntuple-example-make-read
()
"Create an ntuple historgram example data file, and read it."
(
make-ntuple-example-data
)
(
ntuple-example-read
))
(
save-test
ntuple
(
ntuple-example-make-read
)
(
ntuple-example-histogramming
))
This diff is collapsed.
Click to expand it.
tests/ntuple.lisp
+
2
−
2
View file @
46e1e734
;; Regression test NTUPLE for GSLL, automatically generated
;;
;; Copyright 2009 Liam M. Healy
;; Copyright 2009
, 2011
Liam M. Healy
;; Distributed under the terms of the GNU General Public License
;;
;; This program is free software: you can redistribute it and/or modify
...
...
@@ -19,6 +19,6 @@
(
in-package
:gsl
)
(
LISP-UNIT:DEFINE-TEST
NTUPLE
(
LISP-UNIT:ASSERT-true
(
NTUPLE-EXAMPLE-READ
))
(
LISP-UNIT:ASSERT-true
(
NTUPLE-EXAMPLE-
make-
READ
))
(
LISP-UNIT:ASSERT-true
(
NTUPLE-EXAMPLE-HISTOGRAMMING
)))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment