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))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 ?