Methods
); method functions can be written
to handle specific classes of data. Classes which already have methods for
these functions include:
cp.atom, cp.crystal, wp.atom, wp.crystal
.
center(x) bandwidth(x) freq.center(x) freq.bandwidth(x)
x
is an object of
cp.atom
or
wp.atom
, returns a real number;
if
x
is an object of
cp.crystal
or
wp.crystal
, returns a vector of
the same length.
For
cp.crystal
and
wp.crystal
, definitions to the
atom
s are applied to
each of the
atom
s.