-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmodelinheritance.txt
54 lines (37 loc) · 1.35 KB
/
modelinheritance.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
BaseModel
result( xdata, param )
calls baseResult( xdata, param )
partial( xdata, param, parlist=None )
calls basePartial( xdata, param, parlist=parlist )
FixedModel( BaseModel )
parlist : list of not-fixed parameters
result( xdata, param )
calls super().result( xdata, expparam )
partial( xdata, param )
calls super().partial( xdata, expparam, parlist=parlist )
numPartial( xdata, param, parlist=None )
for all par in parlist
calls FixedModel.result( xdata, par )
Model( FixedModel )
result( xdata, param )
recursively calls super.result( xdata, param )
partial( xdata, param, useNum=False )
recursively calls super.partial( xdata, param )
or super.numPartial( xdata, param )
numPartial( xdata, param )
calls partial( xdata, params, useNum=True )
LinearModel( Model )
baseResult( xdata, param ) :
calls basePartial( xdata, param )
NonLinearModel( Model )
basePartial( xdata, param, parlist=None )
calls numPartial( xdata, param, parlist=parlist )
FunctionalModel( LinearModel )
basePartial( xdata, param, parlist=None )
calculates partial of function for (selected) paramters
FunctionalModel( NonLinearModel )
baseResult( xdata, param )
calculates function result.
optional:
basePartial( xdata, param, parlist=None )
calculates partial of function for (selected) paramters