Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Notabela/Lie_to_me
/ functions
Functions
216 in github.com/Notabela/Lie_to_me
⨍
Functions
216
◇
Types & classes
28
↳
Endpoints
3
↓ 17 callers
Function
_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 callers
Method
make_wave
Transforms to the time domain. returns: Wave
lie_to_me/modules/thinkdsp.py:506
↓ 9 callers
Method
plot
Plots the wave.
lie_to_me/modules/thinkdsp.py:959
↓ 8 callers
Function
normalize
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 callers
Function
unbias
Shifts a wave array so it has mean 0. ys: wave array returns: wave array
lie_to_me/modules/thinkdsp.py:1053
↓ 7 callers
Method
copy
Makes a copy. Returns: new Wave
lie_to_me/modules/thinkdsp.py:633
↓ 6 callers
Function
CosSignal
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 callers
Method
close
Closes the file. duration: how many seconds of silence to append
lie_to_me/modules/thinkdsp.py:78
↓ 6 callers
Function
find_index
Find the index corresponding to a given value in an array.
lie_to_me/modules/thinkdsp.py:138
↓ 6 callers
Method
write
Writes a wave. wave: Wave
lie_to_me/modules/thinkdsp.py:70
↓ 5 callers
Function
_UnderrideColor
If color is not in the options, chooses a color.
lie_to_me/modules/thinkplot.py:105
↓ 4 callers
Method
cumsum
Computes the cumulative sum of the elements. returns: new Wave
lie_to_me/modules/thinkdsp.py:771
↓ 3 callers
Function
Clf
Clears the figure and any hints that have been set.
lie_to_me/modules/thinkplot.py:202
↓ 3 callers
Function
Config
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 callers
Method
InitIter
Initializes the color iterator with the given number of colors.
lie_to_me/modules/thinkplot.py:79
↓ 3 callers
Function
Plot
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 callers
Method
any_spectrum
Returns an arbitrary spectrum from the spectrogram.
lie_to_me/modules/thinkdsp.py:531
↓ 3 callers
Method
apodize
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 callers
Method
cov
Covariance of two unbiased waves. other: Wave returns: float
lie_to_me/modules/thinkdsp.py:992
↓ 3 callers
Method
diff
Computes the difference between successive elements. returns: new Wave
lie_to_me/modules/thinkdsp.py:762
↓ 3 callers
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1475
↓ 3 callers
Method
find_index
Find the index corresponding to a given time.
lie_to_me/modules/thinkdsp.py:861
↓ 3 callers
Method
make_spectrum
Computes the spectrum using FFT. returns: Spectrum
lie_to_me/modules/thinkdsp.py:896
↓ 3 callers
Method
start
(self)
lie_to_me/modules/thinkdsp.py:644
↓ 2 callers
Method
ClearIter
Sets the color iterator to None.
lie_to_me/modules/thinkplot.py:86
↓ 2 callers
Method
ColorGenerator
Returns an iterator of color strings. n: how many colors will be used
lie_to_me/modules/thinkplot.py:69
↓ 2 callers
Method
_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 callers
Method
convolve
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 callers
Method
copy
Makes a copy. Returns: new Spectrum
lie_to_me/modules/thinkdsp.py:179
↓ 2 callers
Function
cos_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 callers
Method
get_xfactor
(self, options)
lie_to_me/modules/thinkdsp.py:951
↓ 2 callers
Method
hamming
Apply a Hamming window to the wave.
lie_to_me/modules/thinkdsp.py:801
↓ 2 callers
Function
make_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 callers
Function
midi_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 callers
Method
normalize
Normalizes the signal to the given amplitude. amp: float amplitude
lie_to_me/modules/thinkdsp.py:849
↓ 2 callers
Method
render_full
Extracts amps and fs from a full spectrum. high: cutoff frequency returns: fs, amps
lie_to_me/modules/thinkdsp.py:226
↓ 2 callers
Method
slice
Makes a slice from a Wave. i: first slice index j: second slice index
lie_to_me/modules/thinkdsp.py:886
↓ 2 callers
Function
truncate
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 callers
Method
window
Apply a window to the wave. window: sequence of multipliers, same length as self.ys
lie_to_me/modules/thinkdsp.py:806
↓ 1 callers
Function
Bar
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 callers
Function
Cdf
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 callers
Method
GetIter
Gets the color iterator.
lie_to_me/modules/thinkplot.py:92
↓ 1 callers
Function
Hist
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 callers
Function
Pdf
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 callers
Function
Plotly
Shows the plot. For options, see Config. options: keyword args used to invoke various plt functions
lie_to_me/modules/thinkplot.py:695
↓ 1 callers
Function
Pmf
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 callers
Function
SaveFormat
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 callers
Function
SinSignal
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 callers
Function
apodize
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 callers
Function
cleanup_audio
Clean up temporary audio files
lie_to_me/process.py:344
↓ 1 callers
Function
cleanup_uploads
Clean up uploaded videos
lie_to_me/process.py:331
↓ 1 callers
Function
cleanup_video_frames
Clean up temporary frames and uploaded file
lie_to_me/process.py:337
↓ 1 callers
Function
convert_audio
(filepath)
lie_to_me/process.py:63
↓ 1 callers
Function
convert_to_frames
(filepath)
lie_to_me/process.py:24
↓ 1 callers
Method
cos_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 callers
Function
detect_blinks
Returns the frames where blinks occured
lie_to_me/process.py:148
↓ 1 callers
Method
frequencies
Sequence of frequencies. returns: sequence of float freqencies in Hz.
lie_to_me/modules/thinkdsp.py:555
↓ 1 callers
Function
mag
Computes the magnitude of a numpy array. a: numpy array returns: float
lie_to_me/modules/thinkdsp.py:1732
↓ 1 callers
Function
main
()
lie_to_me/modules/thinkdsp.py:1755
↓ 1 callers
Function
main
()
lie_to_me/modules/thinkplot.py:784
↓ 1 callers
Function
make_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 callers
Method
make_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 callers
Function
microexpression_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 callers
Method
pink_filter
Apply a filter that would make white noise pink. beta: exponent of the pink noise
lie_to_me/modules/thinkdsp.py:389
↓ 1 callers
Function
play_wave
Plays a wave file. filename: string player: string name of executable that plays wav files
lie_to_me/modules/thinkdsp.py:127
↓ 1 callers
Function
predict
Machine Learning Lie Prediction Function
lie_to_me/process.py:320
↓ 1 callers
Function
quantize
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 callers
Method
quantize
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 callers
Function
rest
Makes a rest of the given duration. duration: float seconds returns: Wave
lie_to_me/modules/thinkdsp.py:1646
↓ 1 callers
Method
segment
Extracts a segment. start: float start time in seconds duration: float duration in seconds returns: Wave
lie_to_me/modules/thinkdsp.py:869
↓ 1 callers
Function
setupSockets
()
lie_to_me/static/js/affectiva.js:21
↓ 1 callers
Function
sin_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 callers
Function
stopEmotionDetection
()
lie_to_me/static/js/affectiva.js:110
↓ 1 callers
Method
times
Sorted sequence of times. returns: sequence of float times in seconds
lie_to_me/modules/thinkdsp.py:547
↓ 1 callers
Method
unbias
Unbiases the signal.
lie_to_me/modules/thinkdsp.py:856
↓ 1 callers
Function
upload_video_file
()
lie_to_me/static/js/analyze.js:42
↓ 1 callers
Method
write
Write a wave file. filename: string
lie_to_me/modules/thinkdsp.py:1028
↓ 1 callers
Function
zero_pad
Extends an array with zeros. array: numpy array n: length of result returns: new NumPy array
lie_to_me/modules/thinkdsp.py:1742
Function
Cdfs
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
Method
Colors
Returns the list of colors.
lie_to_me/modules/thinkplot.py:63
Function
Contour
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
Function
Diff
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
Function
Figure
Sets options for the current figure.
lie_to_me/modules/thinkplot.py:212
Function
FillBetween
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
Function
HexBin
Makes a scatter plot. xs: x values ys: y values options: options passed to plt.scatter
lie_to_me/modules/thinkplot.py:318
Function
Hists
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
Function
Hlines
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
Function
Pcolor
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
Function
Pdfs
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
Function
Pmfs
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
Function
PrePlot
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
Function
Save
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
Function
Scatter
Makes a scatter plot. xs: x values ys: y values options: options passed to plt.scatter
lie_to_me/modules/thinkplot.py:301
Function
Show
Shows the plot. For options, see Config. options: keyword args used to invoke various plt functions
lie_to_me/modules/thinkplot.py:681
Function
Sinc
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
Function
SubPlot
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
Function
Text
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
Function
Vlines
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