Skip to content

Latest commit

 

History

History
33 lines (33 loc) · 1.79 KB

README.md

File metadata and controls

33 lines (33 loc) · 1.79 KB

av.arrays

Small&Fast JavaScript library that attaches xtra methods for Arrays, including basic Descriptive Statistics functions

  • issolid() boolean, check whether array is not sparse
  • solid() new array without undefined and null values
  • isNaN() boolean, check whether the at least one element of the array isNaN
  • unique() new array with unique elements
  • OR(other_array) new array with the elements of the union
  • AND(other_array) new array with the elements of the intersection
  • XOR(other_array) new array with the elements of the union without the elements of the intersection
  • min() returns the min value
  • max() returns the max value
  • range() returns [min, max]
  • sum() returns the sum of the items of the array
  • stack() returns a new array with the stacked values of each item
  • module() number, returns the module
  • normalize() new array, each item divided by module
  • mean(i) number, mean of the items i=(-1: harmonic, 0: geometric, 1: aritmetic, 2: quadratic,... n: n-mean)
  • median() number
  • freq() object, frequency of each value
  • mode() new array, modes of the array
  • P(i) number, Percentile_i
  • variance() number
  • pvariance() number, population variance
  • covariance(other_array) number
  • stdDev() number, standard deviation
  • pstdDev() number, population standard deviation
  • correlation(other_array) number
  • CV() number, coefficient of variation
  • skew() number
  • kurtosis() number