Skip to content

Commit 767a04a

Browse files
bhadreshpsavaniCloudyPadmal
authored andcommitted
added t and v (fossasia#113)
1 parent 7b8eb57 commit 767a04a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PSL/analyticsClass.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import numpy as np
55

6-
76
class analyticsClass():
87
"""
98
This class contains methods that allow mathematical analysis such as curve fitting
@@ -157,7 +156,7 @@ def find_frequency(self, v, si): # voltages, samplimg interval is seconds
157156
index = amp.argmax() # search for the tallest peak, the fundamental
158157
return frq[index]
159158

160-
def sineFit2(self, x, y):
159+
def sineFit2(self, x, y, t, v):
161160
freq = self.find_frequency(y, x[1] - x[0])
162161
amp = (y.max() - y.min()) / 2.0
163162
guess = [amp, freq, 0, 0] # amplitude, freq, phase,offset

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy