File: connfuncs.g

package info (click to toggle)
genesis 2.1-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 14,288 kB
  • ctags: 10,667
  • sloc: ansic: 111,959; makefile: 2,240; yacc: 1,797; lex: 976; csh: 54; sh: 13
file content (42 lines) | stat: -rw-r--r-- 915 bytes parent folder | download | duplicates (5)
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
//genesis
function propagation_velocity(path, velocity)
str path
float velocity
     radialdelay {path} {1.0/velocity}
end

function gausspropagation_velocity(path, min, max, mean, sd)
str path
float min, max
float mean, sd
     radialdelay {path} -gaussian {1.0/mean} {1.0/sd} {1.0/max}  \
        {1.0/min}
end

function rangepropagation_velocity(path, min_velocity, max_velocity)
str path
float min_velocity
float max_velocity
     radialdelay {path} -uniform {1.0/max_velocity}  \
        {1.0/min_velocity}
end

function exponential_weight(path, maxweight, lambda, minval)
str path
float maxweight
float lambda
float minval
     expweight {path} {-1.0/lambda} {maxweight} {minval}
end

function aff_weight(path, angle, max, mlambda, clambda, min)
str path
float angle
float maxweight
float mlambda
float clambda
float min
     affweight {path} {angle} {max} {-1.0/mlambda} {-1.0/clambda} \
         {min}
end