Module Expr Str ImportFrom alias Import alias identifier Import alias ImportFrom alias identifier ImportFrom alias identifier FunctionDef arguments args NameParam NameParam defaults body Expr Str Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword Num attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpDiv Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword Num attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpDiv Call NameLoad NameLoad NameLoad BinOpPow Num BinOpDiv Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult Call NameLoad NameLoad NameLoad BinOpPow Num BinOpDiv Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad BinOpSub AttributeLoad NameLoad attr Num TryExcept body Assert CompareEq BinOpMod SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad BinOpFloorDiv SubscriptLoad NameLoad Index NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Index Num Assign NameStore BinOpSub NameLoad SubscriptLoad NameLoad Index Num If Call AttributeLoad CompareEq NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return NameLoad decorator_list If CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str orelse If CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str orelse Assign NameStore NameLoad Return NameLoad decorator_list
N/A N/A 
Bands
=====

 __future__ division N/A numpy np N/A acoustics acoustics.standards.iec_61672_1_2013 NOMINAL_OCTAVE_CENTER_FREQUENCIES OCTAVE_CENTER_FREQUENCIES acoustics.standards.iec_61672_1_2013 NOMINAL_THIRD_OCTAVE_CENTER_FREQUENCIES THIRD_OCTAVE_CENTER_FREQUENCIES octave N/A N/A first last N/A N/A N/A 
    Generate a Numpy array for central frequencies of octave bands.

    There are more information on how to calculate 'real' bands in
    http://blog.prosig.com/2006/02/17/standard-octave-bands/

    Parameters
    ----------
    first : scalar
        First octave centerfrequency.

    last : scalar
        Last octave centerfrequency.

    Returns
    -------
    octave_bands : array
        An array of centerfrequency octave bands.
     N/A N/A N/A N/A N/A acoustics signal OctaveBand fstart first fstop last fraction 1 nominal N/A octave_low N/A N/A first last N/A N/A N/A N/A N/A octave first last N/A N/A np sqrt 2.0 N/A octave_high N/A N/A first last N/A N/A N/A N/A N/A octave first last N/A N/A np sqrt 2.0 N/A third N/A N/A first last N/A N/A N/A 
    Generate a Numpy array for central frequencies of third octave bands.

    Parameters
    ----------
    first : scalar
       First third octave centerfrequency.

    last : scalar
        Last third octave centerfrequency.

    Returns
    -------
    octave_bands : array
        An array of centerfrequency third octave bands.
     N/A N/A N/A N/A N/A acoustics signal OctaveBand fstart first fstop last fraction 3 nominal N/A third_low N/A N/A first last N/A N/A N/A N/A N/A third first last N/A 2.0 N/A 1.0 6.0 N/A third_high N/A N/A first last N/A N/A N/A N/A N/A third first last N/A 2.0 N/A 1.0 6.0 N/A third2oct N/A N/A levels axis N/A None N/A N/A 
    Calculate Octave levels from third octave levels.
    
    :param levels: Array containing third octave levels.
    :type: :class:`np.ndarray`
    :param axis: Axis over which to perform the summation. 
    :type axis: :class:`int`
    
    :returns: Third octave levels
    :rtype: :class:`np.ndarray`
    
    .. note:: The number of elements along the summation axis should be a factor of 3.
     N/A levels N/A N/A np array levels N/A axis N/A N/A axis None axis N/A N/A levels ndim 1 N/A N/A N/A N/A N/A N/A N/A levels shape N/A axis 3 0 N/A N/A N/A AssertionError N/A N/A N/A ValueError Wrong shape. N/A shape N/A list N/A levels shape N/A N/A shape N/A axis N/A N/A shape N/A axis 3 N/A N/A N/A shape insert N/A axis 1 3 N/A levels N/A N/A np reshape levels shape N/A N/A N/A np squeeze N/A N/A N/A acoustics decibel dbsum levels axis N/A axis 1 N/A _check_band_type N/A N/A freqs N/A N/A N/A Check if an array contains octave or third octave bands values sorted
    or unsorted.
     N/A octave_bands N/A octave 16 16000 N/A third_oct_bands N/A third 12.5 20000 _check_sort N/A N/A freqs bands N/A N/A N/A index N/A N/A N/A np where N/A N/A np in1d bands freqs N/A 0 N/A band_pos N/A index N/A index N/A 0 N/A N/A N/A N/A band_pos N/A N/A np arange N/A band_pos size all N/A N/A sorted True N/A N/A sorted False N/A sorted N/A N/A N/A N/A N/A N/A N/A np in1d freqs octave_bands all True N/A N/A is_sorted N/A _check_sort freqs octave_bands N/A N/A is_sorted True N/A N/A band_type octave N/A N/A band_type octave-unsorted N/A N/A N/A N/A N/A N/A N/A np in1d freqs third_oct_bands all True N/A N/A is_sorted N/A _check_sort freqs third_oct_bands N/A N/A is_sorted True N/A N/A band_type third N/A N/A band_type third-unsorted N/A N/A band_type None N/A band_type N/A