| TCCMaths.cc | |
| Functions | |
| f__maxIL | Return an IntegerList with the highest number found at index 0 and the index of ilist where it’s found at index 1 |
| f__minIL | Return an IntegerList with the lowest number found at index 0 and the index of ilist where it’s fond at index 1 |
| f__maxFL | Return an FloatList with the highest number found at index 0 and the index of flist where it’s fond at index 1 |
| f__minFL | Return an FloatList with the highest number found at index 0 and the index of flist where it’s fond at index 1 |
| f__averageFL | Return the average of flist |
| f__averageIL | Return the average of ilist |
| f__stdFL | Return the normalized standard deviation of float list (so the average square distance from the center of elements in the list) |
| f__stdFLL | Return the normalized standard deviation of float list using custom center (so it is the average square distance from a user defined central value) |
| f__updateFL | Append tail to the end of head (head return as inout) |
| f__updateIL | Append tail to the end of head (head return as inout) |
| f__stdIL | Return the normalized standard deviation of integer list (so the average square distance from the center of points) |
| f__stdILL | Return the normalized standard deviation of integer list using custom center (so it is the average square distance from a user defined central value) |
| f__sinVL | Return the values of the sin function |
| f__cosVL | Return the values of the cos function |
| f__sin | Return the sine of angle radians |
| f__cos | Return the cosine of angle radians |
| f__asin | Return the arc sine of value in [-pi/2, +pi/2] |
| f__acos | Return the arc cosine of value in [0, pi] |
| f__powFF | Raise to power (float to float power) |
| f__powII | Raise to power (integer to integer power) |
| f__powIF | Raise to power (integer to float power) |
| f__powFI | Raise to power (float to integer power) |
| f__sqrF | Raise a float value to square |
| f__sqrI | Raise an integer value to square |
| f__sqrtF | Square root of float value |
| f__sqrtI | Square root of integer value |
| f__ceil | Return the smallest integer value that is not less then value |
| f__floor | Return the largest integer value that is not greater then value |
| f__exp | Return the exponential value of the argument |
| f__log | Return the natural logarithm of the argument |
Return an IntegerList with the highest number found at index 0 and the index of ilist where it’s found at index 1
| ilist | in IntegerList - integer array |
| <IntegerList> | integer array: { <max>, <max index> } |
-
-
Return an IntegerList with the lowest number found at index 0 and the index of ilist where it’s fond at index 1
| ilist | in IntegerList - integer array |
| <IntegerList> | integer array: { <min>, <min index> } |
-
-
Return an FloatList with the highest number found at index 0 and the index of flist where it’s fond at index 1
| flist | in FloatList - integer array |
| <FloatList> | float array: { <max>, <max index> } |
-
-
Return an FloatList with the highest number found at index 0 and the index of flist where it’s fond at index 1
| flist | in FloatList - integer array |
| <FloatList> | float array: { <min>, <min index> } |
-
-
Return the average of flist
| flist | in FloatList - integer array |
| float | average of float numbers |
-
-
Return the average of ilist
| ilist | in IntegerList - integer array |
| float | average of integer numbers |
-
-
Return the normalized standard deviation of float list (so the average square distance from the center of elements in the list)
| flist | in FloatList - float list |
| float | normalized, standard derivate |
-
E.g. list = {2.0, 4.0}
u = (2.0 + 4.0) / 2 <- center of elements in the list
len = sizeof(list)
[ ( (2.0-u)^2 + (4.0-u)^2 ) / len ] ^ (0.5)
Return the normalized standard deviation of float list using custom center (so it is the average square distance from a user defined central value)
| u | in float - user defined central value |
| flist | in FloatList - float list |
| float | normalized, standard derivate |
-
Note: u is the average value of flist and has to be calculated before a call to this function
E.g. list = {2.0, 4.0}
u <- user input
len = sizeof(list)
[ ( (2.0-u)^2 + (4.0-u)^2 ) / len ] ^ (0.5)
Append tail to the end of head (head return as inout)
| head | in IntegerList - first part of the integer list |
| tail | in IntegerList - second part of the integer list |
-
-
-
Return the normalized standard deviation of integer list (so the average square distance from the center of points)
| ilist | in IntegerList - integer list |
| float | normalized, standard derivate |
-
E.g. list = {2.0, 4.0}
u = (2.0 + 4.0) / 2 <- center of elements in the list
len = sizeof(list)
[ ( (2.0-u)^2 + (4.0-u)^2 ) / len ] ^ (0.5)
Return the normalized standard deviation of integer list using custom center (so it is the average square distance from a user defined central value)
| u | in float - user defined central value |
| ilist | in IntegerList - integer list |
| float | normalized, standard derivate |
-
Note: u is a user defined value
E.g. list = {2.0, 4.0}
u <- user input
len = sizeof(list)
[ ( (2.0-u)^2 + (4.0-u)^2 ) / len ] ^ (0.5)
Return the values of the sin function
| freq | in float - the frequency of the sine curve |
| altitude | in float - the altitude of the sine curve |
| start_val | in float - the starting value passed to the sine function |
| len | in integer - the wanted number of points of the sine curve |
| step | in float - the length between the points on the sine curve |
| <FloatList> | the wanted points in a float list |
-
Generation of one sin value:
altitude * sin(2 * pi * freq * start_val)
start_val := start_val + step
Return the values of the cos function
| freq | in float - the frequency of the sine curve |
| altitude | in float - the altitude of the sine curve |
| start_val | in float - the starting value passed to the sine function |
| len | in integer - the wanted number of points of the sine curve |
| step | in float - the length between the points on the sine curve |
| <FloatList> | the wanted points in a float list |
-
Generation of one cos value:
altitude * cos(2 * pi * freq * start_val)
start_val := start_val + step
List of integer
type record of integer IntegerList
List of float
type record of float FloatList