An instance of this class returns the Bartlett spectral window in the time-domain. The Bartlett window is very similar to a triangular window, except that the end points are at zero. It is often used in signal processing for tapering a signal, without generating too much ripple in the frequency domain.
Parameters: | M – (integer scalar) Number of points in the output window. If zero or less, an empty vector is returned. |
---|---|
Returns: | (vector of doubles) The triangular window, with the maximum value normalized to one (the value one appears only if the number of samples is odd), with the first and last samples equal to zero. |
New in version 0.6.
Count number of occurrences of each value in array of non-negative ints.
The number of bins (of size 1) is one larger than the largest value in x. If minlength is specified, there will be at least this number of bins in the output array (though it will be longer if necessary, depending on the contents of x). Each bin gives the number of occurrences of its index value in x. If weights is specified the input array is weighted by it, i.e. if a value n is found at position i, out[n] += weight[i] instead of out[n] += 1. Wraping of numpy.bincount
Parameters: |
|
---|
New in version 0.6.
Calculate the n-th order discrete difference along given axis.
The first order difference is given by out[i] = a[i + 1] - a[i] along the given axis, higher order differences are calculated by using diff recursively. Wraping of numpy.diff.
Parameters: |
|
---|
New in version 0.6.
Returns a copy of an array with all elements of the main diagonal set to a specified scalar value.
Parameters: |
|
---|---|
Returns: | An array identical to ‘a’ except that its main diagonal is filled with scalar ‘val’. (For an array ‘a’ with a.ndim >= 2, the main diagonal is the list of locations a[i, i, ..., i] (i.e. with indices all identical).) |
Support rectangular matrix and tensor with more than 2 dimensions if the later have all dimensions are equals.
New in version 0.6.
Repeat elements of an array.
It returns an array which has the same shape as x, except along the given axis. The axis is used to speficy along which axis to repeat values. By default, use the flattened input array, and return a flat output array.
The number of repetitions for each element is repeat. repeats is broadcasted to fit the length of the given axis.
Parameters: |
|
---|
New in version 0.6.
Remove broadcastable dimensions from the shape of an array.
It returns the input array, but with the broadcastable dimensions removed. This is always x itself or a view into x.
Parameters: | x – Input data, tensor variable. |
---|---|
Returns: | x without its broadcastable dimensions. |
New in version 0.6.