Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ellipse ¶
type Ellipse struct {
// contains filtered or unexported fields
}
Ellipse is 2D ellipse
For more information see: https://en.wikipedia.org/wiki/Ellipse
func New ¶
New creates new Ellipse with origin [x,y], length of major/minor axis (mx,my) and rotation angle radians. It returns error if either of the axis (a or b). Note: the lengths of major/minor axis are defined as a distance between the ellipse vertices on major/minor axis. however, this function accepts semi-major/minor lengths from the Ellipse origin.
For more information please see: https://en.wikipedia.org/wiki/Semi-major_and_semi-minor_axes
func NewWithDataConfidence ¶
NewWithDataConfidence creates new Ellipse from data with origin being data mean and confidence probability. The data is assumed to be of the Normal (a.k.a. Gaussian) distribution. It panics if either of the folllowing happens: * supplied data matrix is nil * principal components could not be calculated from the supplied data It returns error if confidence is not in (0,1> interval.
func (*Ellipse) Eccentricity ¶
Eccentricity returns eccentricity of the ellipse
func (*Ellipse) LinePoints ¶
LinePoints returns both plotter.Line and plotter.Scatter which can be used to plot Ellipse. It returns error if at least one of the ellipse data points contains a NaN or Infinity.