File tree Expand file tree Collapse file tree 4 files changed +109
-86
lines changed
main/java/de/dmi3y/behaiv
test/java/de/dmi3y/behaiv Expand file tree Collapse file tree 4 files changed +109
-86
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ publishing {
2222 maven(MavenPublication ) {
2323 groupId = ' de.dmi3y.behaiv'
2424 artifactId = ' behaiv'
25- version = ' 0.3.7 -alpha'
25+ version = ' 0.3.8 -alpha'
2626
2727
2828 from components. java
Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ public Behaiv setKernelId(@Nonnull String id) {
5555 return this ;
5656 }
5757
58+ public Behaiv setThreshold (long amount ) {
59+ this .kernel .setTreshold (amount );
60+ return this ;
61+ }
62+
5863 public Behaiv setKernel (@ Nonnull Kernel kernel ) {
5964 this .kernel = kernel ;
6065 return this ;
@@ -70,9 +75,8 @@ public Behaiv setStorage(BehaivStorage storage) {
7075 return this ;
7176 }
7277
73- public Behaiv registerLabel (@ Nullable String label ) {
78+ public void registerLabel (@ Nullable String label ) {
7479 currentSession .captureLabel (label );
75- return this ;
7680 }
7781
7882 public Observable <String > subscribe () {
@@ -124,4 +128,6 @@ public void stopCapturing(boolean discard) {
124128 }
125129
126130 }
131+
132+
127133}
Original file line number Diff line number Diff line change 11package de .dmi3y .behaiv ;
22
3- import de .dmi3y .behaiv .kernel .LogisticRegressionKernel ;
43import de .dmi3y .behaiv .kernel .Kernel ;
4+ import de .dmi3y .behaiv .kernel .LogisticRegressionKernel ;
55import de .dmi3y .behaiv .session .CaptureSession ;
66import de .dmi3y .behaiv .storage .BehaivStorage ;
77import org .junit .Before ;
@@ -33,6 +33,7 @@ public class BehaivTest {
3333 public void setUp () throws Exception {
3434 testKernel = new LogisticRegressionKernel ("testId" );
3535 behaiv = Behaiv .with (testKernel );
36+ behaiv .setThreshold (10L );
3637 }
3738
3839 @ Test
You can’t perform that action at this time.
0 commit comments