Library "LibraryPrivateUsage001"
This is a public library (used for math operations) that includes the functions explained below. The libraries are considered public domain code and permission is not required from the author if you reuse these functions in your open-source scripts. Before using this library you better check the House Rules.
isFine(l1, l2, index, v1) checks if l1/l2 is between v1 and v2
Parameters:
l1: float
l2: float
index: then number of elements in the array to compare
v1: and v2 the values to compare with l1/l2
Returns: true if l1/l2is between v1 and v2
getRMinmax1(mima, arr, const) assigns maximum and minimum values to the array mima
Parameters:
mima: is the array to set max/min
arr: is the array to get values to compare
const: is the array to get constant values that used while calculating max/min
Returns: changes the mima array and set the elements to get max/min that is calculated using values and contants
getRMinmax3(mima, arr, const, loc) assigns maximum and minimum values to the array mima
Parameters:
mima: is the array to set max/min
arr: is the array to get values to compare
const: is the array to get constant values that used while calculating max/min
loc: the index of the element in the const array
Returns: changes the mima array and set the elements to get max/min that is calculated using values and contants
getRMinmax2(mima, arr, const, loc) assigns maximum and minimum values to the array mima
Parameters:
mima: is the array to set max/min
arr: is the array to get values to compare
const: is the array to get constant values that used while calculating max/min
loc: the index of the element in the const array
Returns: changes the mima array and set the elements to get max/min that is calculated using values and contants
checkType1(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType2(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType3(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType4(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType5(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType10(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType11(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType12(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
checkType13(thiscond, rates_array, arr) checks if thiscond is true and elements of rates array is between the elements of rates_array
Parameters:
thiscond: to check if it's true
rates_array: to get values to compare
arr: keeps the values to compare them with the elements of rates_array
Returns: true if all conditions met
CheckRtype1(vals, consts) checks conditions and if the conditions met then get max/min values and assign them to elements mima array
Parameters:
vals: array to to get values
consts: array of constant values
Returns: mima array if all conditions met
CheckRtype2(vals, consts) checks conditions and if the conditions met then get max/min values and assign them to elements mima array
Parameters:
vals: array to to get values
consts: array of constant values
Returns: mima array if all conditions met
setPPLocs(pre_loc, arr, index) checks mima array and if conditions met assigns the elements of pre_loc array
Parameters:
pre_loc: keeps the elements that is set when conditions met
arr: is an array which keeps the values to compare
index: is an integer value that is used as index while assigning values to pre_loc array
Returns: mima is the array that keeps max/min values