From 2259528c221a6e70da6e32c1e0bf8b33fa4ff635 Mon Sep 17 00:00:00 2001 From: Joel Therrien Date: Wed, 4 Jul 2018 10:54:46 -0700 Subject: [PATCH] Small modificaton of NumericCovariate; child classes now gurantee they return NumericCovariate when getParent() is called. --- .../java/ca/joeltherrien/randomforest/NumericCovariate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ca/joeltherrien/randomforest/NumericCovariate.java b/src/main/java/ca/joeltherrien/randomforest/NumericCovariate.java index 76c83b3..5d1c8dc 100644 --- a/src/main/java/ca/joeltherrien/randomforest/NumericCovariate.java +++ b/src/main/java/ca/joeltherrien/randomforest/NumericCovariate.java @@ -60,7 +60,7 @@ public class NumericCovariate implements Covariate{ } @Override - public Covariate getParent() { + public NumericCovariate getParent() { return NumericCovariate.this; } @@ -84,7 +84,7 @@ public class NumericCovariate implements Covariate{ } @Override - public Covariate getParent() { + public NumericCovariate getParent() { return NumericCovariate.this; }