MCPcopy Create free account

hub / github.com/Notabela/Lie_to_me / functions

Functions216 in github.com/Notabela/Lie_to_me

↓ 17 callersFunction_Underride
Add key-value pairs to d only if key is not in d. If d is None, create a new dictionary. d: dictionary options: keyword args to add to d
lie_to_me/modules/thinkplot.py:185
↓ 11 callersMethodmake_wave
Transforms to the time domain. returns: Wave
lie_to_me/modules/thinkdsp.py:506
↓ 9 callersMethodplot
Plots the wave.
lie_to_me/modules/thinkdsp.py:959
↓ 8 callersFunctionnormalize
Normalizes a wave array so the maximum amplitude is +amp or -amp. ys: wave array amp: max amplitude (pos or neg) in result returns: wave
lie_to_me/modules/thinkdsp.py:1063
↓ 8 callersFunctionunbias
Shifts a wave array so it has mean 0. ys: wave array returns: wave array
lie_to_me/modules/thinkdsp.py:1053
↓ 7 callersMethodcopy
Makes a copy. Returns: new Wave
lie_to_me/modules/thinkdsp.py:633
↓ 6 callersFunctionCosSignal
Makes a cosine Sinusoid. freq: float frequency in Hz amp: float amplitude, 1.0 is nominal max offset: float phase offset in radians
lie_to_me/modules/thinkdsp.py:1297
↓ 6 callersMethodclose
Closes the file. duration: how many seconds of silence to append
lie_to_me/modules/thinkdsp.py:78
↓ 6 callersFunctionfind_index
Find the index corresponding to a given value in an array.
lie_to_me/modules/thinkdsp.py:138
↓ 6 callersMethodwrite
Writes a wave. wave: Wave
lie_to_me/modules/thinkdsp.py:70
↓ 5 callersFunction_UnderrideColor
If color is not in the options, chooses a color.
lie_to_me/modules/thinkplot.py:105
↓ 4 callersMethodcumsum
Computes the cumulative sum of the elements. returns: new Wave
lie_to_me/modules/thinkdsp.py:771
↓ 3 callersFunctionClf
Clears the figure and any hints that have been set.
lie_to_me/modules/thinkplot.py:202
↓ 3 callersFunctionConfig
Configures the plot. Pulls options out of the option dictionary and passes them to the corresponding plt functions.
lie_to_me/modules/thinkplot.py:637
↓ 3 callersMethodInitIter
Initializes the color iterator with the given number of colors.
lie_to_me/modules/thinkplot.py:79
↓ 3 callersFunctionPlot
Plots a line. Args: obj: sequence of x values, or Series, or anything with Render() ys: sequence of y values style: style strin
lie_to_me/modules/thinkplot.py:218
↓ 3 callersMethodany_spectrum
Returns an arbitrary spectrum from the spectrogram.
lie_to_me/modules/thinkdsp.py:531
↓ 3 callersMethodapodize
Tapers the amplitude at the beginning and end of the signal. Tapers either the given duration of time or the given fraction of the to
lie_to_me/modules/thinkdsp.py:790
↓ 3 callersMethodcov
Covariance of two unbiased waves. other: Wave returns: float
lie_to_me/modules/thinkdsp.py:992
↓ 3 callersMethoddiff
Computes the difference between successive elements. returns: new Wave
lie_to_me/modules/thinkdsp.py:762
↓ 3 callersMethodevaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1475
↓ 3 callersMethodfind_index
Find the index corresponding to a given time.
lie_to_me/modules/thinkdsp.py:861
↓ 3 callersMethodmake_spectrum
Computes the spectrum using FFT. returns: Spectrum
lie_to_me/modules/thinkdsp.py:896
↓ 3 callersMethodstart
(self)
lie_to_me/modules/thinkdsp.py:644
↓ 2 callersMethodClearIter
Sets the color iterator to None.
lie_to_me/modules/thinkplot.py:86
↓ 2 callersMethodColorGenerator
Returns an iterator of color strings. n: how many colors will be used
lie_to_me/modules/thinkplot.py:69
↓ 2 callersMethod_evaluate
Helper function that evaluates the signal. ts: float array of times freqs: float array of frequencies during each interval
lie_to_me/modules/thinkdsp.py:1485
↓ 2 callersMethodconvolve
Convolves two waves. Note: this operation ignores the timestamps; the result has the timestamps of self. other: Wave or NumP
lie_to_me/modules/thinkdsp.py:742
↓ 2 callersMethodcopy
Makes a copy. Returns: new Spectrum
lie_to_me/modules/thinkdsp.py:179
↓ 2 callersFunctioncos_wave
Makes a cosine wave with the given parameters. freq: float cycles per second duration: float seconds offset: float radians returns:
lie_to_me/modules/thinkdsp.py:1718
↓ 2 callersMethodget_xfactor
(self, options)
lie_to_me/modules/thinkdsp.py:951
↓ 2 callersMethodhamming
Apply a Hamming window to the wave.
lie_to_me/modules/thinkdsp.py:801
↓ 2 callersFunctionmake_note
Make a MIDI note with the given duration. midi_num: int MIDI note number duration: float seconds sig_cons: Signal constructor function
lie_to_me/modules/thinkdsp.py:1658
↓ 2 callersFunctionmidi_to_freq
Converts MIDI note number to frequency. midi_num: int MIDI note number returns: float frequency in Hz
lie_to_me/modules/thinkdsp.py:1692
↓ 2 callersMethodnormalize
Normalizes the signal to the given amplitude. amp: float amplitude
lie_to_me/modules/thinkdsp.py:849
↓ 2 callersMethodrender_full
Extracts amps and fs from a full spectrum. high: cutoff frequency returns: fs, amps
lie_to_me/modules/thinkdsp.py:226
↓ 2 callersMethodslice
Makes a slice from a Wave. i: first slice index j: second slice index
lie_to_me/modules/thinkdsp.py:886
↓ 2 callersFunctiontruncate
Trims a wave array to the given length. ys: wave array n: integer length returns: wave array
lie_to_me/modules/thinkdsp.py:1099
↓ 2 callersMethodwindow
Apply a window to the wave. window: sequence of multipliers, same length as self.ys
lie_to_me/modules/thinkdsp.py:806
↓ 1 callersFunctionBar
Plots a line. Args: xs: sequence of x values ys: sequence of y values options: keyword args passed to plt.bar
lie_to_me/modules/thinkplot.py:288
↓ 1 callersFunctionCdf
Plots a CDF as a line. Args: cdf: Cdf object complement: boolean, whether to plot the complementary CDF transform: string, one
lie_to_me/modules/thinkplot.py:488
↓ 1 callersMethodGetIter
Gets the color iterator.
lie_to_me/modules/thinkplot.py:92
↓ 1 callersFunctionHist
Plots a Pmf or Hist with a bar plot. The default width of the bars is based on the minimum difference between values in the Hist. If that's
lie_to_me/modules/thinkplot.py:357
↓ 1 callersFunctionPdf
Plots a Pdf, Pmf, or Hist as a line. Args: pdf: Pdf, Pmf, or Hist object options: keyword args passed to plt.plot
lie_to_me/modules/thinkplot.py:329
↓ 1 callersFunctionPlotly
Shows the plot. For options, see Config. options: keyword args used to invoke various plt functions
lie_to_me/modules/thinkplot.py:695
↓ 1 callersFunctionPmf
Plots a Pmf or Hist as a line. Args: pmf: Hist or Pmf object options: keyword args passed to plt.plot
lie_to_me/modules/thinkplot.py:415
↓ 1 callersFunctionSaveFormat
Writes the current figure to a file in the given format. Args: root: string filename root fmt: string format
lie_to_me/modules/thinkplot.py:746
↓ 1 callersFunctionSinSignal
Makes a sine Sinusoid. freq: float frequency in Hz amp: float amplitude, 1.0 is nominal max offset: float phase offset in radians
lie_to_me/modules/thinkdsp.py:1309
↓ 1 callersFunctionapodize
Tapers the amplitude at the beginning and end of the signal. Tapers either the given duration of time or the given fraction of the total dura
lie_to_me/modules/thinkdsp.py:1127
↓ 1 callersFunctioncleanup_audio
Clean up temporary audio files
lie_to_me/process.py:344
↓ 1 callersFunctioncleanup_uploads
Clean up uploaded videos
lie_to_me/process.py:331
↓ 1 callersFunctioncleanup_video_frames
Clean up temporary frames and uploaded file
lie_to_me/process.py:337
↓ 1 callersFunctionconvert_audio
(filepath)
lie_to_me/process.py:63
↓ 1 callersFunctionconvert_to_frames
(filepath)
lie_to_me/process.py:24
↓ 1 callersMethodcos_cov
Covariance with a cosine signal. freq: freq of the cosine signal in Hz returns: float covariance
lie_to_me/modules/thinkdsp.py:1002
↓ 1 callersFunctiondetect_blinks
Returns the frames where blinks occured
lie_to_me/process.py:148
↓ 1 callersMethodfrequencies
Sequence of frequencies. returns: sequence of float freqencies in Hz.
lie_to_me/modules/thinkdsp.py:555
↓ 1 callersFunctionmag
Computes the magnitude of a numpy array. a: numpy array returns: float
lie_to_me/modules/thinkdsp.py:1732
↓ 1 callersFunctionmain
()
lie_to_me/modules/thinkdsp.py:1755
↓ 1 callersFunctionmain
()
lie_to_me/modules/thinkplot.py:784
↓ 1 callersFunctionmake_chord
Make a chord with the given duration. midi_nums: sequence of int MIDI note numbers duration: float seconds sig_cons: Signal constructor f
lie_to_me/modules/thinkdsp.py:1675
↓ 1 callersMethodmake_wave
Makes a Wave object. duration: float seconds start: float seconds framerate: int frames per second returns: Wave
lie_to_me/modules/thinkdsp.py:1196
↓ 1 callersFunctionmicroexpression_analyzer
Micro expressions happen in 1/25th of a second or 15 frames Microexpression_analyzer: Function parameters: **emotions: A di
lie_to_me/process.py:197
↓ 1 callersMethodpink_filter
Apply a filter that would make white noise pink. beta: exponent of the pink noise
lie_to_me/modules/thinkdsp.py:389
↓ 1 callersFunctionplay_wave
Plays a wave file. filename: string player: string name of executable that plays wav files
lie_to_me/modules/thinkdsp.py:127
↓ 1 callersFunctionpredict
Machine Learning Lie Prediction Function
lie_to_me/process.py:320
↓ 1 callersFunctionquantize
Maps the waveform to quanta. ys: wave array bound: maximum amplitude dtype: numpy data type of the result returns: quantized signal
lie_to_me/modules/thinkdsp.py:1110
↓ 1 callersMethodquantize
Maps the waveform to quanta. bound: maximum amplitude dtype: numpy data type or string returns: quantized signal
lie_to_me/modules/thinkdsp.py:780
↓ 1 callersFunctionrest
Makes a rest of the given duration. duration: float seconds returns: Wave
lie_to_me/modules/thinkdsp.py:1646
↓ 1 callersMethodsegment
Extracts a segment. start: float start time in seconds duration: float duration in seconds returns: Wave
lie_to_me/modules/thinkdsp.py:869
↓ 1 callersFunctionsetupSockets
()
lie_to_me/static/js/affectiva.js:21
↓ 1 callersFunctionsin_wave
Makes a sine wave with the given parameters. freq: float cycles per second duration: float seconds offset: float radians returns: Wa
lie_to_me/modules/thinkdsp.py:1704
↓ 1 callersFunctionstopEmotionDetection
()
lie_to_me/static/js/affectiva.js:110
↓ 1 callersMethodtimes
Sorted sequence of times. returns: sequence of float times in seconds
lie_to_me/modules/thinkdsp.py:547
↓ 1 callersMethodunbias
Unbiases the signal.
lie_to_me/modules/thinkdsp.py:856
↓ 1 callersFunctionupload_video_file
()
lie_to_me/static/js/analyze.js:42
↓ 1 callersMethodwrite
Write a wave file. filename: string
lie_to_me/modules/thinkdsp.py:1028
↓ 1 callersFunctionzero_pad
Extends an array with zeros. array: numpy array n: length of result returns: new NumPy array
lie_to_me/modules/thinkdsp.py:1742
FunctionCdfs
Plots a sequence of CDFs. cdfs: sequence of CDF objects complement: boolean, whether to plot the complementary CDF transform: string,
lie_to_me/modules/thinkplot.py:541
MethodColors
Returns the list of colors.
lie_to_me/modules/thinkplot.py:63
FunctionContour
Makes a contour plot. d: map from (x, y) to z, or object that provides GetDict pcolor: boolean, whether to make a pseudocolor plot co
lie_to_me/modules/thinkplot.py:553
FunctionDiff
Compute the differences between adjacent elements in a sequence. Args: t: sequence of number Returns: sequence of difference
lie_to_me/modules/thinkplot.py:475
FunctionFigure
Sets options for the current figure.
lie_to_me/modules/thinkplot.py:212
FunctionFillBetween
Fills the space between two lines. Args: xs: sequence of x values y1: sequence of y values y2: sequence of y values where
lie_to_me/modules/thinkplot.py:273
FunctionHexBin
Makes a scatter plot. xs: x values ys: y values options: options passed to plt.scatter
lie_to_me/modules/thinkplot.py:318
FunctionHists
Plots two histograms as interleaved bar plots. Options are passed along for all PMFs. If you want different options for each pmf, make multi
lie_to_me/modules/thinkplot.py:401
FunctionHlines
Plots a set of horizontal lines. Args: ys: sequence of y values x1: sequence of x values x2: sequence of x values options
lie_to_me/modules/thinkplot.py:259
FunctionPcolor
Makes a pseudocolor plot. xs: ys: zs: pcolor: boolean, whether to make a pseudocolor plot contour: boolean, whether to make a
lie_to_me/modules/thinkplot.py:592
FunctionPdfs
Plots a sequence of PDFs. Options are passed along for all PDFs. If you want different options for each pdf, make multiple calls to Pdf.
lie_to_me/modules/thinkplot.py:343
FunctionPmfs
Plots a sequence of PMFs. Options are passed along for all PMFs. If you want different options for each pmf, make multiple calls to Pmf.
lie_to_me/modules/thinkplot.py:461
FunctionPrePlot
Takes hints about what's coming. num: number of lines that will be plotted rows: number of rows of subplots cols: number of columns of su
lie_to_me/modules/thinkplot.py:126
FunctionSave
Saves the plot in the given formats and clears the figure. For options, see Config. Args: root: string filename root formats: li
lie_to_me/modules/thinkplot.py:711
FunctionScatter
Makes a scatter plot. xs: x values ys: y values options: options passed to plt.scatter
lie_to_me/modules/thinkplot.py:301
FunctionShow
Shows the plot. For options, see Config. options: keyword args used to invoke various plt functions
lie_to_me/modules/thinkplot.py:681
FunctionSinc
Makes a Sinc function. freq: float frequency in Hz amp: float amplitude, 1.0 is nominal max offset: float phase offset in radians
lie_to_me/modules/thinkdsp.py:1321
FunctionSubPlot
Configures the number of subplots and changes the current plot. rows: int cols: int plot_number: int options: passed to subplot
lie_to_me/modules/thinkplot.py:172
FunctionText
Puts text in a figure. x: number y: number s: string options: keyword args passed to plt.text
lie_to_me/modules/thinkplot.py:619
FunctionVlines
Plots a set of vertical lines. Args: xs: sequence of x values y1: sequence of y values y2: sequence of y values options:
lie_to_me/modules/thinkplot.py:245
Method__add__
Adds two spectrums elementwise. other: Spectrum returns: new Spectrum
lie_to_me/modules/thinkdsp.py:293
Method__add__
Adds two DCTs elementwise. other: DCT returns: new DCT
lie_to_me/modules/thinkdsp.py:490
next →1–100 of 216, ranked by callers