Merge branch 'master' into 1mhz-opt-osc
This commit is contained in:
commit
2dff0c242c
|
@ -38,6 +38,7 @@ import librosa
|
||||||
import numpy
|
import numpy
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
from eta import ETA
|
from eta import ETA
|
||||||
|
from typing import Tuple
|
||||||
|
|
||||||
import lookahead
|
import lookahead
|
||||||
import opcodes
|
import opcodes
|
||||||
|
@ -75,7 +76,6 @@ class Speaker:
|
||||||
|
|
||||||
# See _Signal Processing in C_, C. Reid, T. Passin
|
# See _Signal Processing in C_, C. Reid, T. Passin
|
||||||
# https://archive.org/details/signalprocessing0000reid/
|
# https://archive.org/details/signalprocessing0000reid/
|
||||||
|
|
||||||
dt = numpy.float64(1 / sample_rate)
|
dt = numpy.float64(1 / sample_rate)
|
||||||
w = numpy.float64(freq * 2 * numpy.pi * dt)
|
w = numpy.float64(freq * 2 * numpy.pi * dt)
|
||||||
|
|
||||||
|
@ -93,7 +93,6 @@ class Speaker:
|
||||||
self.b1 = b1
|
self.b1 = b1
|
||||||
self.b2 = b2
|
self.b2 = b2
|
||||||
|
|
||||||
|
|
||||||
def total_error(positions: numpy.ndarray, data: numpy.ndarray) -> numpy.ndarray:
|
def total_error(positions: numpy.ndarray, data: numpy.ndarray) -> numpy.ndarray:
|
||||||
"""Computes the total squared error for speaker position matrix vs data."""
|
"""Computes the total squared error for speaker position matrix vs data."""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue