A __pycache__ folder appeared in the Python project folder
📁 Advanced Python Topics, project
Good evening! I can't understand where the __pycache__ folder came from in the Python project folder. What is this folder and how was it created?
P.s.: Happy New Year to everyone!!!
Since a simple local extremum is not sufficient, we need to add a threshold check to filter out small peaks and artifacts. The threshold can be calculated as the sample [standard deviation] multiplied by some constant corresponding to the confidence interval for the mathematical expectation.
In practice, this constant is taken as 2.5.
UPD
Taking into account the additional conditions of the problem, a peak should be considered as the maximum on the segment from the "top" (starting point or the first value above q) to the "bottom" (the first value below -q).
In this case, for an array of size n, the following algorithm is possible:
- Find the standard deviation of the sample and calculate the threshold
q. - Set
top=0. - Find the coordinate
bottom
Log in to leave an answer