CFwhm:new
The new method constructs a new instance of a CFwhm object. The CFwhm class includes properties that control calculation of a FWHM value and its centroid position. Two different constructor overloads are available to create a new CFwhm and initialize the properties.
F = CFwhm:new()
F = CFwhm:new( CFwhm )
Two overloads are provided for the CFwhm class. They create a default CFwhm and a copy of a CFwhm. If you pass something other than nil or another CFwhm—such as a string—then the default constructor is used.
The following script fragment illustrates using the 2 constructors. All produce the same result:
|
-- create CFwhm A and set values |
|
-- change the default (true) |
|
-- copy A to a new CFwhm B |
|
-- result: F1 sign = 0 |
|
-- result: F2 sign = 0 |