LineShapeND class

Defines an n-dimensional abstract shape.

Implementers

Constructors

LineShapeND()

Properties

integral ↔ double
read / write
integralCalculated ↔ bool
read / write
NOT_IMPL → String
final
shapeParameters ↔ Object
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

fromList(Object pars) → dynamic
pars - the parameters of the shape. Can be anything. For Gauss-Lorentz, e.g. a List (see there)
getIntegral() → double
Returns the integral of this shape if its was computed (see getValuesAt, otherwise throws.
getShapeParams() → Object
Returns teh shape parameters
getValueAt(List<double> x) → double
Calculates and returns the values of the Shape at the given position x. x.length is the dimension of the shape, so a position has n coordinate values.
getValuesAt(List<List<double>> xxx, int integralType) → Float64List
Calculates and returns the values of the Shape at the given positions xxx. xxx.length is the dimension of the shape, so a position has n coordinate values. xxx0.length is the number of points for which to calculate the shape value. xxxp the n-dimensional coordinate of a point p integralType - how the integral is computed. 0=sum of all values. -1 = compute no integral
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

getWidth(Float64List array, int peakindex) → double
Returns an estimate of the width at half height of the peak at peakindex of the data given by array. This assumes a Gauss/Lorentz type line shape. Typically used if array contains experimental data of Gauss/Lorentz type.