grade(size name,(size value,float),(size value, float))
grade
Function parameters
Usage
This function is applied when you want to define numeric values depending on the size, but you can't do it by simply taking a percentage of size or through other mathematic operations. For example, you don't want bust ease to always be 5% of the bust girth, as it will be too little for small sizes and too much for big sizes. Let's say you want the ease to be around 5 for smaller sizes, around 6 for medium sizes and around 7.5 for larger sizes. You can thus define your variable through grade function, referring to value of sz16 (bust girth) and setting several limits so that the value will be changed within these.
If you set ea16 through grade function:
ea16=grade(sz16,(40,5),(80,5),(90,6),(100,6),(150,7.5))
the variable will be calculated in the following way:
value of sz16 | value of ea16 |
40 | 5 |
... | 5 |
43 | 5 |
... | 5 |
57 | 5 |
80 | 5 |
value of sz16 | value of ea16 |
80 | 5 |
81 | 5.1 |
82 | 5.2 |
83 | 5.3 |
84 | 5.4 |
85 | 5.5 |
86 | 5.6 |
87 | 5.7 |
88 | 5.8 |
89 | 5.9 |
89.5 | 5.95 |
90 | 6 |
value of sz16 | value of ea16 |
90 | 6 |
... | 6 |
92 | 6 |
... | 6 |
96 | 6 |
100 | 6 |
value of sz16 | value of ea16 |
100 | 6 |
101 | 6.03 |
102 | 6.06 |
103 | 6.09 |
104 | 6.12 |
105 | 6.15 |
..... | |
120 | 6.6 |
..... | |
130 | 6.9 |
..... | |
150 | 7.5 |