Bases: astropy.units.function.FunctionQuantity
A representation of a (scaled) logarithm of a number with a unit
| Parameters: | value : number, Quantity, LogQuantity, or sequence of convertible items.
unit : string, UnitBase or FunctionUnitBase instance, optional
dtype : dtype, optional
copy : bool, optional
|
|---|
Examples
Typically, use is made of an FunctionQuantity subclasses, as in:
>>> import astropy.units as u
>>> u.Magnitude(15.)
<Magnitude 15.0 mag>
>>> u.Magnitude(10.*u.count/u.second)
<Magnitude -2.5 mag(ct / s)>
>>> u.Decibel(1.*u.W, u.DecibelUnit(u.mW))
<Decibel 30.0 dB(mW)>
Methods Summary
| diff([n, axis]) | |
| ediff1d([to_end, to_begin]) | |
| ptp([axis, out]) | Peak to peak (maximum - minimum) value along a given axis. |
| std([axis, dtype, out, ddof]) | Returns the standard deviation of the array elements along given axis. |
| var([axis, dtype, out, ddof]) | Returns the variance of the array elements, along given axis. |
Methods Documentation
Peak to peak (maximum - minimum) value along a given axis.
Refer to numpy.ptp for full documentation.
See also
Returns the standard deviation of the array elements along given axis.
Refer to numpy.std for full documentation.
See also
Returns the variance of the array elements, along given axis.
Refer to numpy.var for full documentation.
See also