grapa.shared.maths.MathOperator

class grapa.shared.maths.MathOperator

Bases: object

To help write nicer code when dealing with math operations on Curves

__init__()

Methods

operate(xseries, yseries, operator)

Attributes

ADD

DIV

MUL

POW

SUB

classmethod operate(xseries, yseries, operator: str) ndarray
Parameters:
  • xseries – list or np.array

  • yseries – list or np.array

  • operator – one of the class constant ADD, SUB, MUL, DIV or POW.

Returns:

np.array