Package wiat :: Module Data :: Class __Parabola
[hide private]
[frames] | no frames]

Class __Parabola

source code

Class for fiting an equation of the form y = ax**2 + bx + c

Instance Methods [hide private]
 
__init__(self) source code
 
__call__(self, f) source code
 
fit_points(self, px, py)
Fit the parabola passing through 3 points with 3 equations
source code
 
lowf(self) source code
 
highf(self) source code
 
xc(self)
position of vertical axis of symmetry: h = -b / 2a
source code
 
yc(self)
value of parabola on axis of symmetry: k = (4ac - b**2) / 4a
source code
Method Details [hide private]

fit_points(self, px, py)

source code 

Fit the parabola passing through 3 points with 3 equations

y1 = a * x1**2 + b*x1 + c y2 = a * x2**2 + b*x2 + c y3 = a * x3**2 + b*x3 + c