-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtcDefaults.cpp
More file actions
48 lines (42 loc) · 957 Bytes
/
tcDefaults.cpp
File metadata and controls
48 lines (42 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <vector>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
using namespace std;
namespace py = pybind11;
#include "tcHeader.h"
PYBIND11_MAKE_OPAQUE(std::vector<double>);
AnalysisParams::AnalysisParams()
:
numCells( 100 ),
numTrials( 60 ),
numFrames( 202 ),
csOnsetFrame( 75 ),
usOnsetFrame( 190 ),
circPad( 20 ),
binFrames( 3 ),
numShuffle( 1000 ),
dipFrames( 2 ),
epsilon( 1.0e-6 ),
frameDt( 0.08 ),
minPeakSep( 0.4 ),
dipSdev( 1.0 )
{
circShuffleFrames = circPad*2 + usOnsetFrame - csOnsetFrame;;
}
TiAnalysisParams::TiAnalysisParams()
:
transientThresh( 2.0 ),
tiPercentile( 99.0 ),
// frac of trials where at least 1 peak>transientThresh*sdev + mean
fracTrialsFiredThresh( 0.25 ),
frameDt( 0.08 )
{;}
PeqAnalysisParams::PeqAnalysisParams()
:
alpha( 10.0 ),
beta( 1.0 ),
gamma( 10.0 ),
transientThresh( 2.0 ),
hitWindow( 5.0 ) // +/- 5 frames.
{;}