test_class.file: modules/ml/src/test/java/org/apache/ignite/ml/tree/impurity/mse/MSEImpurityMeasureTest.java
test_class.identifier: MSEImpurityMeasureTest
test_case.body: @Test
      public void testSubtract() {
          Random rnd = new Random(0);
  
          MSEImpurityMeasure a = new MSEImpurityMeasure(
              rnd.nextDouble(), rnd.nextDouble(), rnd.nextInt(), rnd.nextDouble(), rnd.nextDouble(), rnd.nextInt()
          );
  
          MSEImpurityMeasure b = new MSEImpurityMeasure(
              rnd.nextDouble(), rnd.nextDouble(), rnd.nextInt(), rnd.nextDouble(), rnd.nextDouble(), rnd.nextInt()
          );
  
          MSEImpurityMeasure c = a.subtract(b);
  
          assertEquals(a.getLeftY() - b.getLeftY(), c.getLeftY(), 1e-10);
          assertEquals(a.getLeftY2() - b.getLeftY2(), c.getLeftY2(), 1e-10);
          assertEquals(a.getLeftCnt() - b.getLeftCnt(), c.getLeftCnt());
          assertEquals(a.getRightY() - b.getRightY(), c.getRightY(), 1e-10);
          assertEquals(a.getRightY2() - b.getRightY2(), c.getRightY2(), 1e-10);
          assertEquals(a.getRightCnt() - b.getRightCnt(), c.getRightCnt());
      }
test_case.class_method_signature: MSEImpurityMeasureTest.testSubtract()
test_case.full_signature: @Test public void testSubtract()
test_case.identifier: testSubtract
test_case.invocations: nextDouble nextDouble nextInt nextDouble nextDouble nextInt nextDouble nextDouble nextInt nextDouble nextDouble nextInt subtract assertEquals getLeftY getLeftY getLeftY assertEquals getLeftY2 getLeftY2 getLeftY2 assertEquals getLeftCnt getLeftCnt getLeftCnt assertEquals getRightY getRightY getRightY assertEquals getRightY2 getRightY2 getRightY2 assertEquals getRightCnt getRightCnt getRightCnt
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSubtract()
focal_class.declarator: serialVersionUID = 4536394578628409689L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 4536394578628409689L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: leftY
focal_class.modifier: private final
focal_class.original_string: private final double leftY;
focal_class.type: double
focal_class.var_name: leftY
focal_class.declarator: leftY2
focal_class.modifier: private final
focal_class.original_string: private final double leftY2;
focal_class.type: double
focal_class.var_name: leftY2
focal_class.declarator: leftCnt
focal_class.modifier: private final
focal_class.original_string: private final long leftCnt;
focal_class.type: long
focal_class.var_name: leftCnt
focal_class.declarator: rightY
focal_class.modifier: private final
focal_class.original_string: private final double rightY;
focal_class.type: double
focal_class.var_name: rightY
focal_class.declarator: rightY2
focal_class.modifier: private final
focal_class.original_string: private final double rightY2;
focal_class.type: double
focal_class.var_name: rightY2
focal_class.declarator: rightCnt
focal_class.modifier: private final
focal_class.original_string: private final long rightCnt;
focal_class.type: long
focal_class.var_name: rightCnt
focal_class.file: modules/ml/src/main/java/org/apache/ignite/ml/tree/impurity/mse/MSEImpurityMeasure.java
focal_class.identifier: MSEImpurityMeasure
focal_class.interfaces: implements ImpurityMeasure<MSEImpurityMeasure>
focal_class.class_method_signature: MSEImpurityMeasure.MSEImpurityMeasure(double leftY, double leftY2, long leftCnt, double rightY, double rightY2, long rightCnt)
focal_class.full_signature: public  MSEImpurityMeasure(double leftY, double leftY2, long leftCnt, double rightY, double rightY2, long rightCnt)
focal_class.identifier: MSEImpurityMeasure
focal_class.modifiers: public
focal_class.parameters: (double leftY, double leftY2, long leftCnt, double rightY, double rightY2, long rightCnt)
focal_class.signature:  MSEImpurityMeasure(double leftY, double leftY2, long leftCnt, double rightY, double rightY2, long rightCnt)
focal_class.class_method_signature: MSEImpurityMeasure.impurity()
focal_class.full_signature: @Override public double impurity()
focal_class.identifier: impurity
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double impurity()
focal_class.class_method_signature: MSEImpurityMeasure.add(MSEImpurityMeasure b)
focal_class.full_signature: @Override public MSEImpurityMeasure add(MSEImpurityMeasure b)
focal_class.identifier: add
focal_class.modifiers: @Override public
focal_class.parameters: (MSEImpurityMeasure b)
focal_class.return: MSEImpurityMeasure
focal_class.signature: MSEImpurityMeasure add(MSEImpurityMeasure b)
focal_class.class_method_signature: MSEImpurityMeasure.subtract(MSEImpurityMeasure b)
focal_class.full_signature: @Override public MSEImpurityMeasure subtract(MSEImpurityMeasure b)
focal_class.identifier: subtract
focal_class.modifiers: @Override public
focal_class.parameters: (MSEImpurityMeasure b)
focal_class.return: MSEImpurityMeasure
focal_class.signature: MSEImpurityMeasure subtract(MSEImpurityMeasure b)
focal_class.class_method_signature: MSEImpurityMeasure.getLeftY()
focal_class.full_signature: public double getLeftY()
focal_class.identifier: getLeftY
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getLeftY()
focal_class.class_method_signature: MSEImpurityMeasure.getLeftY2()
focal_class.full_signature: public double getLeftY2()
focal_class.identifier: getLeftY2
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getLeftY2()
focal_class.class_method_signature: MSEImpurityMeasure.getLeftCnt()
focal_class.full_signature: public long getLeftCnt()
focal_class.identifier: getLeftCnt
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getLeftCnt()
focal_class.class_method_signature: MSEImpurityMeasure.getRightY()
focal_class.full_signature: public double getRightY()
focal_class.identifier: getRightY
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getRightY()
focal_class.class_method_signature: MSEImpurityMeasure.getRightY2()
focal_class.full_signature: public double getRightY2()
focal_class.identifier: getRightY2
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getRightY2()
focal_class.class_method_signature: MSEImpurityMeasure.getRightCnt()
focal_class.full_signature: public long getRightCnt()
focal_class.identifier: getRightCnt
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getRightCnt()
focal_method.body: @Override public MSEImpurityMeasure subtract(MSEImpurityMeasure b) {
          return new MSEImpurityMeasure(
              leftY - b.leftY,
              leftY2 - b.leftY2,
              leftCnt - b.leftCnt,
              rightY - b.rightY,
              rightY2 - b.rightY2,
              rightCnt - b.rightCnt
          );
      }
focal_method.class_method_signature: MSEImpurityMeasure.subtract(MSEImpurityMeasure b)
focal_method.full_signature: @Override public MSEImpurityMeasure subtract(MSEImpurityMeasure b)
focal_method.identifier: subtract
focal_method.modifiers: @Override public
focal_method.parameters: (MSEImpurityMeasure b)
focal_method.return: MSEImpurityMeasure
focal_method.signature: MSEImpurityMeasure subtract(MSEImpurityMeasure b)