Methods
Static arraySum
- arraySum(arr: number[], start?: number, end?: number): number
-
Parameters
-
arr: number[]
-
Default value start: number = 0
-
Default value end: number = arr.length - 1
Returns number
Static ema
- ema(data: number[], period: number): Array<number>
-
Parameters
-
data: number[]
-
period: number
Returns Array<number>
Static isNumber
- isNumber(n: any): boolean
-
Parameters
Returns boolean
Static max
- max(arr: number[], start?: number, end?: number): number
-
Parameters
-
arr: number[]
-
Default value start: number = 0
-
Default value end: number = arr.length
Returns number
Static min
- min(arr: number[], start?: number, end?: number): number
-
Parameters
-
arr: number[]
-
Default value start: number = 0
-
Default value end: number = arr.length
Returns number
Static sma
- sma(data: number[], period: number): Array<number>
-
Parameters
-
data: number[]
-
period: number
Returns Array<number>
Static wEma
- wEma(data: number[], interval: number): Array<number>
-
Parameters
-
data: number[]
-
interval: number
Returns Array<number>
Math helper class with commonly used functions in this library