Overview
Comment:Fixed mistake in computing entropy flow
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 558ca53629f334c06f9872e61ee17310d37f8a61c04934b02b39ad5ea03e3aff
User & Date: gawthrop@users.sourceforge.net on 2001-07-25 06:27:08.000
Other Links: branch diff | manifest | tags
Context
2001-07-26
04:07:28
Changed a to w on open (Geraint's suggestion)
Explictly close files
check-in: ddb97d836e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2001-07-25
06:27:08
Fixed mistake in computing entropy flow check-in: 558ca53629 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
04:50:29
Just code aesthetics. check-in: b16543c447 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes
20
21
22
23
24
25
26
27

28
29
30
31
32
33
34
20
21
22
23
24
25
26

27
28
29
30
31
32
33
34







-
+







FOR ALL gain_cause,r,rs,out_cause,inp,sinp,in_cause,temp,stemp
LET sRS(gain_cause,r,rs,out_cause,2,
	inp,in_cause,1,
	temp,effort,2,
	sinp,in_cause,3,
	stemp,effort,4
	) 
        = lin(gain_cause,r,temp_cause,1,
        = inp*lin(gain_cause,r,temp_cause,1,
               inp,in_cause,1)/temp;

% Sensitivity ports
FOR ALL gain_cause,r,rs,out_cause,inp,sinp,in_cause,temp,stemp
LET sRS(gain_cause,r,rs,out_cause,3,
	inp,in_cause,1,
	temp,effort,2,
47
48
49
50
51
52
53
54

55
56
57
58
59
60
61
47
48
49
50
51
52
53

54
55
56
57
58
59
60
61







-
+







	inp,flow,1,
	temp,effort,2,
	sinp,flow,3,
	stemp,effort,4
	) 
        = 2*inp*sinp*r/temp
        + (inp^2)*rs/temp
        - (inp^2)*r*temps/(temp^2);
        - (inp^2)*r*stemp/(temp^2);

%% - effort in
FOR ALL gain_cause,r,rs,out_cause,inp,sinp,in_cause,temp,stemp
LET sRS(gain_cause,r,rs,out_cause,4,
	inp,effort,1,
	temp,effort,2,
	sinp,effort,3,
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
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











-
+









-
+







#SUMMARY sRS Sensitivity version of RS

## System sRS, representation lbl, language txt

## Port aliases
#ALIAS	in	In,sIn
#ALIAS	out	Out,sOut


## Argument aliases
#ALIAS	$1	flow,r
#ALIAS	$2	r_s
#ALIAS	$2	rs

## Each line should be of one of the following forms:
##	     a comment (ie starting with #)
##	     component-name	cr_name	arg1,arg2,..argn
##	     blank

## ---- Component labels ----

## Component type R
	r	sRS		flow,r,rs		
	r	sRS		flow,r;rs		

## Component type SS
	[In]	SS		external,external		
	[sIn]	SS		external,external		
	[Out]	SS		external,external		
	[sOut]	SS		external,external		


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]