688a9de4442d95f58944e9024675f227366b67b1
[ghc-hetmet.git] / ghc / tests / programs / ipoole_spec_class / README
1 SCCS: %W% %G%
2
3 Specimen Classifier Simulator
4 -----------------------------
5 Comments relate to ghc, version 0.19
6 ------------------------------------
7
8
9 MODIFICATIONS
10 -------------
11 07-04-94 ipoole   added pi method for Lognum
12
13
14
15 To make, type "make".
16
17 To run, type "SpecClass".   The program prints a table (take several minutes).
18
19 Some notes:
20
21 1) SpecClass.lhs seems to take ~10 times longer to compile than any
22    of the other modules, even though it is not the biggest.  (Without
23    optimisation it seems normal).
24
25 2) Execution appears to be ~ 4 times slower than interpreted gofer!
26    This is almost certainly due to the functions toDouble and toLognum
27    which in Haskell have to go via Rational.  What is clearly needed
28    is a method of type Real a => a -> Double, which could then be
29    defined efficiently for each Real type.   The default method
30    could still go via Rational.   I don't understand how
31    Haskell has survived for so long without such a method (which
32    makes me fear I've missed something...).
33
34 3) When compiled *without* optimsation, the program now (7-04-94)
35    segmentation faults.   
36
37 4) A very hacky "showFixed" is used, to force Reals < 0.0 to be displayed 
38    as 0.XXXXX, rather than in scientific form.   There must be better 
39    way to do this.
40
41 5) The source is not pretty.
42
43 6) To run with Gofer, you'll need our Haskellised Gofer prelude, which I
44    can provide (it originated from Andy Gill).
45
46 7) Anyone interested in the statistics underlying the classifier model should
47    request: Ian Poole, "A statistical model for classifying cervical 
48    monolayers", RN94_003,  MRC Human Genetics Unit, Edinburgh.
49
50 Ian Poole, MRC HGU
51
52 18-01-93