MCPcopy Index your code
hub / github.com/tensorflow/tfjs / getFloatFrequencyData

Method getFloatFrequencyData

tfjs-data/src/util/test_utils.ts:140–146  ·  view source on GitHub ↗
(data: Float32Array)

Source from the content-addressed store, hash-verified

138 }
139
140 getFloatFrequencyData(data: Float32Array): void {
141 const xs: number[] = [];
142 for (let i = 0; i < this.fftSize / 2; ++i) {
143 xs.push(this.x++);
144 }
145 data.set(new Float32Array(xs));
146 }
147
148 getFloatTimeDomainData(data: Float32Array): void {
149 const xs: number[] = [];

Callers 1

getAudioDataMethod · 0.80

Calls 2

pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected