MCPcopy Create free account

hub / github.com/Notabela/Lie_to_me / functions

Functions216 in github.com/Notabela/Lie_to_me

Method__add__
Adds two waves elementwise. other: Wave returns: new Wave
lie_to_me/modules/thinkdsp.py:659
Method__add__
Adds two signals. other: Signal returns: Signal
lie_to_me/modules/thinkdsp.py:1160
Method__init__
Opens the file and sets parameters. filename: string framerate: samples per second
lie_to_me/modules/thinkdsp.py:49
Method__init__
Initializes a spectrum. hs: array of amplitudes (real or complex) fs: array of frequencies framerate: frames per second
lie_to_me/modules/thinkdsp.py:151
Method__init__
Initializes an integrated spectrum: cs: sequence of cumulative amplitudes fs: sequence of frequencies
lie_to_me/modules/thinkdsp.py:443
Method__init__
Initialize the spectrogram. spec_map: map from float time to Spectrum seg_length: number of samples in each segment
lie_to_me/modules/thinkdsp.py:522
Method__init__
Initializes the wave. ys: wave array ts: array of times framerate: samples per second
lie_to_me/modules/thinkdsp.py:618
Method__init__
Initializes the sum. args: tuple of signals
lie_to_me/modules/thinkdsp.py:1229
Method__init__
Initializes a sinusoidal signal. freq: float frequency in Hz amp: float amplitude, 1.0 is nominal max offset: float phase off
lie_to_me/modules/thinkdsp.py:1263
Method__init__
Initializes a linear chirp. start: float frequency in Hz end: float frequency in Hz amp: float amplitude, 1.0 is nominal max
lie_to_me/modules/thinkdsp.py:1456
Method__init__
(self, locations, amps=1)
lie_to_me/modules/thinkdsp.py:1530
Method__init__
Initializes a white noise signal. amp: float amplitude, 1.0 is nominal max
lie_to_me/modules/thinkdsp.py:1550
Method__init__
Initializes a pink noise signal. amp: float amplitude, 1.0 is nominal max
lie_to_me/modules/thinkdsp.py:1617
Method__len__
Length of the spectrum.
lie_to_me/modules/thinkdsp.py:289
Method__len__
(self)
lie_to_me/modules/thinkdsp.py:640
Method__mul__
Multiplies two spectrums elementwise. other: Spectrum returns: new Spectrum
lie_to_me/modules/thinkdsp.py:309
Method__mul__
Multiplies two waves elementwise. Note: this operation ignores the timestamps; the result has the timestamps of self. other:
lie_to_me/modules/thinkdsp.py:712
Method__or__
Concatenates two waves. other: Wave returns: new Wave
lie_to_me/modules/thinkdsp.py:698
Methodadd_ys
(wave)
lie_to_me/modules/thinkdsp.py:678
Methodamps
Returns a sequence of amplitudes (read-only property).
lie_to_me/modules/thinkdsp.py:170
Methodamps
Returns a sequence of amplitudes (read-only property). Note: for DCTs, amps are positive or negative real.
lie_to_me/modules/thinkdsp.py:483
Functionanalysis
Analysis Route View Final Analysis of Uploaded Video :return:
lie_to_me/routes.py:45
Methodangles
Returns a sequence of angles (read-only property).
lie_to_me/modules/thinkdsp.py:350
Functionapplyhamming
Multiplying each frame with a hamming window :param framearray: array of waves (frames) :return: array of hamming window filtered frames
lie_to_me/modules/audio.py:43
Methodband_stop
Attenuate frequencies between the cutoffs. low_cutoff: frequency in Hz high_cutoff: frequency in Hz factor: what to multiply
lie_to_me/modules/thinkdsp.py:377
FunctionbeginAnalysis
()
lie_to_me/static/js/analyze.js:27
Functioncleanup_data
Clean up temporary stored data
lie_to_me/process.py:351
Methodconvolve
Convolves two Spectrums. other: Spectrum returns: Spectrum
lie_to_me/modules/thinkdsp.py:320
Methodcorr
Correlation coefficient two waves. other: Wave returns: float coefficient of correlation
lie_to_me/modules/thinkdsp.py:973
Methodcos_transform
Discrete cosine transform. returns: list of frequency, cov pairs
lie_to_me/modules/thinkdsp.py:1015
Methodcov_mat
Covariance matrix of two waves. other: Wave returns: 2x2 covariance matrix
lie_to_me/modules/thinkdsp.py:983
Methoddifferentiate
Apply the differentiation filter. returns: new Spectrum
lie_to_me/modules/thinkdsp.py:398
Methodduration
Duration (property). returns: float duration in seconds
lie_to_me/modules/thinkdsp.py:652
Methodend
(self)
lie_to_me/modules/thinkdsp.py:648
Functionenergy
Calculates the energy of each frame :param framearray: array of waves (frames) :return: array of energy per frame
lie_to_me/modules/audio.py:65
Methodestimate_slope
Runs linear regression on log power vs log frequency. returns: slope, inter, r2, p, stderr
lie_to_me/modules/thinkdsp.py:266
Methodestimate_slope
Runs linear regression on log cumulative power vs log frequency. returns: slope, inter, r2, p, stderr
lie_to_me/modules/thinkdsp.py:466
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1249
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1284
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1336
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1352
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1369
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1386
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1404
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1420
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1438
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1502
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1517
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1534
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1569
Methodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1583
Methodevaluate
Evaluates the signal at the given times. Computes Brownian noise by taking the cumulative sum of a uniform random series. ts
lie_to_me/modules/thinkdsp.py:1597
Functionfourier
Fourier transforms all waves from array. (Real values only) :param framearray: array of waves (frames) :return: array of FFT waves (spec
lie_to_me/modules/audio.py:82
Methodfreq_res
(self)
lie_to_me/modules/thinkdsp.py:223
Methodfreq_res
Frequency resolution in Hz.
lie_to_me/modules/thinkdsp.py:543
Functionfundamentalf
Calculates pitch deviation to detect stress if pitch deviation >= 5, classified as stressed :param periodarray: array of pitch periods
lie_to_me/modules/audio.py:213
Functionhandle_client_disconnect
(msg)
lie_to_me/websockets.py:38
Functionhandle_connect
()
lie_to_me/websockets.py:20
Functionhandle_disconnect
()
lie_to_me/websockets.py:26
Functionhandle_message_receival
(json)
lie_to_me/websockets.py:32
Functionhandle_next_frame_request
(json)
lie_to_me/websockets.py:56
Functionhandle_ready_receive
(json)
lie_to_me/websockets.py:44
Methodhigh_pass
Attenuate frequencies below the cutoff. cutoff: frequency in Hz factor: what to multiply the magnitude by
lie_to_me/modules/thinkdsp.py:369
Methodimag
Returns the imaginary part of the hs (read-only property).
lie_to_me/modules/thinkdsp.py:345
Functioninfer_framerate
Given ts, find the framerate. Assumes that the ts are equally spaced. ts: sequence of times in seconds returns: frames per second
lie_to_me/modules/thinkdsp.py:1211
Methodintegrate
Apply the integration filter. returns: new Spectrum
lie_to_me/modules/thinkdsp.py:407
Functioninverse_fourier
Apply logarithm to magnitude spectrum and IFFT to get output of homomorphic operation :param fourierarray: array of spectrums (frames) :
lie_to_me/modules/audio.py:100
Methodinvert
Inverts this spectrum/filter. returns: new Wave
lie_to_me/modules/thinkdsp.py:213
Methodlow_pass
Attenuate frequencies above the cutoff. cutoff: frequency in Hz factor: what to multiply the magnitude by
lie_to_me/modules/thinkdsp.py:361
Methodmake_audio
Makes an IPython Audio object.
lie_to_me/modules/thinkdsp.py:1046
Methodmake_dct
Computes the DCT of this wave.
lie_to_me/modules/thinkdsp.py:913
Methodmake_integrated_spectrum
Makes an integrated spectrum.
lie_to_me/modules/thinkdsp.py:416
Methodmake_spectrogram
Computes the spectrogram of the wave. seg_length: number of samples in each segment win_flag: boolean, whether to apply hamming windo
lie_to_me/modules/thinkdsp.py:921
Methodmake_wave
Transforms to the time domain. returns: Wave
lie_to_me/modules/thinkdsp.py:423
Methodmake_wave
Inverts the spectrogram and returns a Wave. returns: Wave
lie_to_me/modules/thinkdsp.py:584
Methodmake_wave
Makes a Wave object. duration: float seconds start: float seconds framerate: int frames per second returns: Wave
lie_to_me/modules/thinkdsp.py:1625
Methodmax_diff
Computes the maximum absolute difference between spectra. other: Spectrum returns: float
lie_to_me/modules/thinkdsp.py:186
Methodmax_diff
Computes the maximum absolute difference between waves. other: Wave returns: float
lie_to_me/modules/thinkdsp.py:729
Methodmax_freq
Returns the Nyquist frequency for this spectrum.
lie_to_me/modules/thinkdsp.py:165
Functionmaxpitchamp
Max Pitch Amplitude audio feature: High Predictability rate (86%) :param amparray: array of pitch period amplitudes (floats) :return max
lie_to_me/modules/audio.py:175
Functionmeanenergy
Mean Energy audio feature: Low predictability rate (61%) :param energyarray: array of energies per frame (waves) :return meanaudio: aver
lie_to_me/modules/audio.py:155
Methodpeaks
Finds the highest peaks and their frequencies. returns: sorted list of (amplitude, frequency) pairs
lie_to_me/modules/thinkdsp.py:276
Methodperiod
Period of the signal in seconds (property). Since this is used primarily for purposes of plotting, the default behavior is to return
lie_to_me/modules/thinkdsp.py:1174
Methodperiod
Period of the signal in seconds. Note: this is not correct; it's mostly a placekeeper. But it is correct for a harmonic sequence whe
lie_to_me/modules/thinkdsp.py:1237
Methodperiod
Period of the signal in seconds. returns: float seconds
lie_to_me/modules/thinkdsp.py:1277
Methodperiod
Period of the signal in seconds. returns: float seconds
lie_to_me/modules/thinkdsp.py:1468
Methodperiod
Period of the signal in seconds. returns: float seconds
lie_to_me/modules/thinkdsp.py:1558
Methodplay
Plays a wave file. filename: string
lie_to_me/modules/thinkdsp.py:1038
Methodplot
Plots amplitude vs frequency. Note: if this is a full spectrum, it ignores low and high high: frequency to cut off at
lie_to_me/modules/thinkdsp.py:240
Methodplot
Make a pseudocolor plot. high: highest frequency component to plot
lie_to_me/modules/thinkdsp.py:563
Methodplot
Plots the signal. The default behavior is to plot three periods. framerate: samples per second
lie_to_me/modules/thinkdsp.py:1185
Methodplot_power
Plots power vs frequency. high: frequency to cut off at
lie_to_me/modules/thinkdsp.py:254
Methodplot_power
Plots the integrated spectrum. low: int index to start at high: int index to end at
lie_to_me/modules/thinkdsp.py:452
Methodplot_vlines
Plots the wave with vertical lines for samples.
lie_to_me/modules/thinkdsp.py:966
Methodpower
Returns a sequence of powers (read-only property).
lie_to_me/modules/thinkdsp.py:175
Functionprocess_audio
Process Audio component of Video
lie_to_me/process.py:106
Functionprocess_video
Processes Video Submitted by User
lie_to_me/process.py:82
Functionrandom_seed
Initialize the random and np.random generators. x: int seed
lie_to_me/modules/thinkdsp.py:33
Methodratio
The ratio of two spectrums. denom: Spectrum thresh: values smaller than this are replaced val: with this value retu
lie_to_me/modules/thinkdsp.py:199
Functionread_wave
Reads a wave file. filename: string returns: Wave
lie_to_me/modules/thinkdsp.py:89
← previousnext →101–200 of 216, ranked by callers