Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 961 Bytes

File metadata and controls

50 lines (35 loc) · 961 Bytes

DataFrame library

Functional schemes

We would like to be able to do the following

const s = add(abs(serie1.dot(serie2)), -1)
  .squared()
  .div(serieWeights)
  .div(sumWeights)

instead of

const s = div(
  div(square(sub(abs(dot(serie1, serie2)), 1)), serieWeights),
  sumWeights,
)

The idea is to extend the prototype of Serie abd DataFrame

class Serie {}

Serie.prototype.add = (a, b) => a + b

const serie = new Serie()
console.log(serie.add(1, 2))

Refactoring Attribute library

In order to work with a dataframe, and which allows

  • any attribute (scalar, vector2, vector3, symMatrix3...)
  • attribute converters
  • symbolic attribute
  • functional attribute
  • implicite attribute (gaussian curvature, coordinate...)
  • operation on attributes (add, sub, mult, div...)
  • public/private ?

References

Math optim