7fd59977 |
1 | -- File: GeomLib_LogSample.cdl |
2 | -- Created: Wed Sep 23 16:50:25 1998 |
3 | -- Author: Philippe MANGIN |
4 | -- <pmn@sgi29> |
5 | ---Copyright: Matra Datavision 1998 |
6 | |
7 | |
8 | private class LogSample from GeomLib inherits FunctionSample from math |
9 | |
10 | ---Purpose: |
11 | raises |
12 | OutOfRange from Standard |
13 | is |
14 | |
15 | Create(A,B: Real; N: Integer) |
16 | returns LogSample from GeomLib; |
17 | |
18 | GetParameter(me; Index: Integer) |
19 | |
20 | ---Purpose: Returns the value of parameter of the point of |
21 | -- range Index : A + ((Index-1)/(NbPoints-1))*B. |
22 | -- An exception is raised if Index<=0 or Index>NbPoints. |
23 | |
24 | returns Real |
25 | raises OutOfRange |
26 | is redefined; |
27 | |
28 | fields |
29 | myF : Real; |
30 | myexp : Real; |
31 | |
32 | end LogSample; |