16
16
public class LineDetectorWithMultiplePoints {
17
17
public List <ProcessA .Sample > samples = new ArrayList <>(); // actual samples which are "included" in the line
18
18
19
- // variable for the line drawing in the acceleration structure
20
- //public ArrayRealVector spatialAccelerationLineDirection; // can be null
21
- //public double spatialAccelerationLineLength; // can be null
22
- //public Vector2d<Integer> spatialAccelerationCenterPosition;
23
-
24
19
public double cachedConf = 0.0 ; // cached confidence of this line detector
25
20
26
21
public double m , n ;
27
22
28
23
public double mse = 0.0f ;
29
24
30
- //public boolean isLocked = false; // has the detector received enough activation so it stays?
31
-
32
25
public boolean isHardened = false ; // has the detector received enough activation so it got hardened?
33
26
34
27
public int commonObjectId = -1 ;
@@ -81,10 +74,6 @@ public double calcActivation() {
81
74
return calcActivation (x );
82
75
}
83
76
84
- public boolean isCommonObjectIdValid () {
85
- return commonObjectId != -1 ;
86
- }
87
-
88
77
@ Deprecated public ArrayRealVector projectPointOntoLine (IntIntPair point ) {
89
78
return projectPointOntoLine (real (point ));
90
79
}
@@ -129,13 +118,6 @@ public boolean isYAxisSingularity() {
129
118
return Double .isInfinite (m );
130
119
}
131
120
132
- // public double getHorizontalOffset(List<ProcessA.Sample> samples) {
133
- // Assert.Assert(isYAxisSingularity(), "");
134
- //
135
- // int sampleIndex = integratedSampleIndices.get(0);
136
- // return samples.get(sampleIndex).position.getOne();
137
- // }
138
-
139
121
public double getLength () {
140
122
List <ArrayRealVector > sortedSamplePositions = ProcessD .getSortedSamplePositions (this );
141
123
@@ -157,11 +139,9 @@ public void recalcConf() {
157
139
}
158
140
}
159
141
160
-
161
142
// must be called before removal in process-D
162
143
public void cleanup () {
163
144
for (ProcessA .Sample iSample : samples )
164
145
iSample .refCount --;
165
146
}
166
-
167
147
}
0 commit comments