AbstractArray¶
- class kgpy.uncertainty.AbstractArray(nominal=<Quantity 0.>)¶
Bases:
ArrayInterface,Generic[NominalT,DistributionT]- Parameters:
nominal (NominalT) –
- __init__(nominal=<Quantity 0.>)¶
- Parameters:
nominal (NominalT) –
- Return type:
None
Attributes
Methods
__init__([nominal])add_axes(axes)- rtype:
typing.TypeVar(AbstractArrayT, bound= AbstractArray)
aligned(shape)- rtype:
typing.TypeVar(AbstractArrayT, bound= AbstractArray)
all([axis, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
any([axis, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
astype(dtype[, order, casting, subok, copy])- rtype:
typing.TypeVar(ArrayT, bound= Array)
broadcast_to(shape)- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
combine_axes(axes[, axis_new])- rtype:
typing.TypeVar(AbstractArrayT, bound= AbstractArray)
copy()- rtype:
typing.TypeVar(CopyableT, bound= Copyable)
- rtype:
typing.TypeVar(CopyableT, bound= Copyable)
index(value[, axis])- rtype:
typing.Dict[str,typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)]
index_below_brute(value[, axis])- rtype:
typing.Dict[str,typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)]
index_nearest_brute(value[, axis, where])- rtype:
typing.Dict[str,typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)]
index_secant(value[, axis, damping])- rtype:
typing.Dict[str,typing.TypeVar(ArrayT, bound= Array)]
interp_linear(item)- rtype:
typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)
matrix_inverse(axis_rows, axis_columns)max([axis, initial, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
mean([axis, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
min([axis, initial, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
ndindex([axis_ignored])- rtype:
ptp([axis])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
reshape(shape)- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
rms([axis, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
std([axis, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
sum([axis, where])- rtype:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
to(unit)- rtype:
typing.TypeVar(ArrayT, bound= Array)
Inheritance Diagram
digraph inheritance1549a75a8d { bgcolor=transparent; rankdir=TB; size="8.0, 12.0"; "abc.ABC" [URL="https://docs.python.org/3/library/abc.html#abc.ABC",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "kgpy.labeled.ArrayInterface" [URL="kgpy.labeled.ArrayInterface.html#kgpy.labeled.ArrayInterface",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="ArrayInterface()"]; "kgpy.mixin.Copyable" -> "kgpy.labeled.ArrayInterface" [arrowsize=0.5,style="setlinewidth(0.5)"]; "kgpy.labeled.NDArrayMethodsMixin" -> "kgpy.labeled.ArrayInterface" [arrowsize=0.5,style="setlinewidth(0.5)"]; "numpy.lib.mixins.NDArrayOperatorsMixin" -> "kgpy.labeled.ArrayInterface" [arrowsize=0.5,style="setlinewidth(0.5)"]; "abc.ABC" -> "kgpy.labeled.ArrayInterface" [arrowsize=0.5,style="setlinewidth(0.5)"]; "typing.Generic" -> "kgpy.labeled.ArrayInterface" [arrowsize=0.5,style="setlinewidth(0.5)"]; "kgpy.labeled.NDArrayMethodsMixin" [URL="kgpy.labeled.NDArrayMethodsMixin.html#kgpy.labeled.NDArrayMethodsMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="NDArrayMethodsMixin()"]; "kgpy.mixin.Copyable" [URL="kgpy.mixin.Copyable.html#kgpy.mixin.Copyable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "abc.ABC" -> "kgpy.mixin.Copyable" [arrowsize=0.5,style="setlinewidth(0.5)"]; "kgpy.uncertainty.AbstractArray" [URL="kgpy.uncertainty.AbstractArray.html#kgpy.uncertainty.AbstractArray",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="AbstractArray(nominal: ~NominalT = <Quantity 0.>)"]; "kgpy.labeled.ArrayInterface" -> "kgpy.uncertainty.AbstractArray" [arrowsize=0.5,style="setlinewidth(0.5)"]; "typing.Generic" -> "kgpy.uncertainty.AbstractArray" [arrowsize=0.5,style="setlinewidth(0.5)"]; "numpy.lib.mixins.NDArrayOperatorsMixin" [URL="https://numpy.org/doc/stable/reference/generated/numpy.lib.mixins.NDArrayOperatorsMixin.html#numpy.lib.mixins.NDArrayOperatorsMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin defining all operator special methods using __array_ufunc__."]; "typing.Generic" [URL="https://docs.python.org/3/library/typing.html#typing.Generic",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract base class for generic types."]; }- type_array_primary¶
alias of
AbstractArray
- add_axes(axes)¶
- Return type:
typing.TypeVar(AbstractArrayT, bound= AbstractArray)- Parameters:
- aligned(shape)¶
- Return type:
typing.TypeVar(AbstractArrayT, bound= AbstractArray)- Parameters:
- all(axis=None, where=<no value>)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- any(axis=None, where=<no value>)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- astype(dtype, order='K', casting='unsafe', subok=True, copy=True)¶
- Return type:
typing.TypeVar(ArrayT, bound= Array)- Parameters:
- broadcast_to(shape)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- combine_axes(axes, axis_new=None)¶
- Return type:
typing.TypeVar(AbstractArrayT, bound= AbstractArray)- Parameters:
- copy()¶
- Return type:
typing.TypeVar(CopyableT, bound= Copyable)- Parameters:
self (CopyableT) –
- copy_shallow()¶
- Return type:
typing.TypeVar(CopyableT, bound= Copyable)- Parameters:
self (CopyableT) –
- index(value, axis=None)¶
- Return type:
typing.Dict[str,typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)]- Parameters:
- index_below_brute(value, axis=None)¶
- Return type:
typing.Dict[str,typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)]- Parameters:
- index_nearest_brute(value, axis=None, where=None)¶
- Return type:
typing.Dict[str,typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)]- Parameters:
- index_secant(value, axis=None, damping=1)¶
- Return type:
typing.Dict[str,typing.TypeVar(ArrayT, bound= Array)]- Parameters:
- interp_linear(item)¶
- Return type:
typing.TypeVar(ArrayInterfaceT, bound= ArrayInterface)- Parameters:
- max(axis=None, initial=None, where=<no value>)¶
- mean(axis=None, where=<no value>)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- min(axis=None, initial=None, where=<no value>)¶
- ndindex(axis_ignored=None)¶
- Return type:
- Parameters:
- ptp(axis=None)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- reshape(shape)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- rms(axis=None, where=<no value>)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- std(axis=None, where=<no value>)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- sum(axis=None, where=<no value>)¶
- Return type:
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)- Parameters:
- to(unit)¶
- Return type:
typing.TypeVar(ArrayT, bound= Array)- Parameters:
self (AbstractArrayT) –
unit (Unit) –
- property array_labeled: AbstractArrayT¶
- property broadcasted: ArrayInterfaceT¶
- property centers: ArrayInterfaceT¶
- property dtype¶
- property length: AbstractArrayT¶
-
nominal:
typing.TypeVar(NominalT, bound=typing.Union[int,float,numpy.ndarray,astropy.units.quantity.Quantity,kgpy.labeled.AbstractArray]) = <Quantity 0.>¶
- property normalized: AbstractArrayT¶
-
type_array:
typing.ClassVar[typing.Tuple[typing.Type,...]] = (<class 'str'>, <class 'bool'>, <class 'int'>, <class 'float'>, <class 'complex'>, <class 'numpy.generic'>, <class 'numpy.ndarray'>, <class 'kgpy.labeled.AbstractArray'>)¶
-
type_array_auxiliary:
typing.ClassVar[typing.Tuple[typing.Type,...]] = (<class 'str'>, <class 'bool'>, <class 'int'>, <class 'float'>, <class 'complex'>, <class 'numpy.generic'>, <class 'numpy.ndarray'>)¶