test_class.declarator: DEFAULT_FORMAT = "%.10f"
test_class.modifier: private static final
test_class.original_string: private static final String DEFAULT_FORMAT = "%.10f";
test_class.type: String
test_class.var_name: DEFAULT_FORMAT
test_class.declarator: DEFAULT_DELTA = 0.000000001d
test_class.modifier: private static final
test_class.original_string: private static final double DEFAULT_DELTA = 0.000000001d;
test_class.type: double
test_class.var_name: DEFAULT_DELTA
test_class.declarator: COLOR_MAPPER = new Tracer.ColorMapper() {
          /** {@inheritDoc} */
          @Override public Color apply(Double d) {
              if (d <= 0.33)
                  return Color.RED;
              else if (d <= 0.66)
                  return Color.GREEN;
              else
                  return Color.BLUE;
          }
      }
test_class.modifier: private static final
test_class.original_string: private static final Tracer.ColorMapper COLOR_MAPPER = new Tracer.ColorMapper() {
          /** {@inheritDoc} */
          @Override public Color apply(Double d) {
              if (d <= 0.33)
                  return Color.RED;
              else if (d <= 0.66)
                  return Color.GREEN;
              else
                  return Color.BLUE;
          }
      };
test_class.type: Tracer.ColorMapper
test_class.var_name: COLOR_MAPPER
test_class.file: modules/ml/src/test/java/org/apache/ignite/ml/math/TracerTest.java
test_class.identifier: TracerTest
test_case.body: @Test
      public void testAsciiMatrixTracer() {
          Matrix mtx = makeRandomMatrix(10, 10);
  
          Tracer.showAscii(mtx);
          Tracer.showAscii(mtx, "%2f");
          Tracer.showAscii(mtx, "%.3g");
      }
test_case.class_method_signature: TracerTest.testAsciiMatrixTracer()
test_case.full_signature: @Test public void testAsciiMatrixTracer()
test_case.identifier: testAsciiMatrixTracer
test_case.invocations: makeRandomMatrix showAscii showAscii showAscii
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAsciiMatrixTracer()
focal_class.declarator: LOCALE = Locale.US
focal_class.modifier: private static final
focal_class.original_string: private static final Locale LOCALE = Locale.US;
focal_class.type: Locale
focal_class.var_name: LOCALE
focal_class.file: modules/ml/src/main/java/org/apache/ignite/ml/math/Tracer.java
focal_class.identifier: Tracer
focal_class.class_method_signature: Tracer.defaultColorMapper(double min, double max)
focal_class.full_signature: private static ColorMapper defaultColorMapper(double min, double max)
focal_class.identifier: defaultColorMapper
focal_class.modifiers: private static
focal_class.parameters: (double min, double max)
focal_class.return: ColorMapper
focal_class.signature: ColorMapper defaultColorMapper(double min, double max)
focal_class.class_method_signature: Tracer.mkVectorColorMapper(Vector vec)
focal_class.full_signature: private static ColorMapper mkVectorColorMapper(Vector vec)
focal_class.identifier: mkVectorColorMapper
focal_class.modifiers: private static
focal_class.parameters: (Vector vec)
focal_class.return: ColorMapper
focal_class.signature: ColorMapper mkVectorColorMapper(Vector vec)
focal_class.class_method_signature: Tracer.mkMatrixColorMapper(Matrix mtx)
focal_class.full_signature: private static ColorMapper mkMatrixColorMapper(Matrix mtx)
focal_class.identifier: mkMatrixColorMapper
focal_class.modifiers: private static
focal_class.parameters: (Matrix mtx)
focal_class.return: ColorMapper
focal_class.signature: ColorMapper mkMatrixColorMapper(Matrix mtx)
focal_class.class_method_signature: Tracer.showAscii(Vector vec, IgniteLogger log, String fmt)
focal_class.full_signature: public static void showAscii(Vector vec, IgniteLogger log, String fmt)
focal_class.identifier: showAscii
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, IgniteLogger log, String fmt)
focal_class.return: void
focal_class.signature: void showAscii(Vector vec, IgniteLogger log, String fmt)
focal_class.class_method_signature: Tracer.showAscii(Vector vec, IgniteLogger log)
focal_class.full_signature: public static void showAscii(Vector vec, IgniteLogger log)
focal_class.identifier: showAscii
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, IgniteLogger log)
focal_class.return: void
focal_class.signature: void showAscii(Vector vec, IgniteLogger log)
focal_class.class_method_signature: Tracer.showAscii(Vector vec, String fmt)
focal_class.full_signature: public static void showAscii(Vector vec, String fmt)
focal_class.identifier: showAscii
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, String fmt)
focal_class.return: void
focal_class.signature: void showAscii(Vector vec, String fmt)
focal_class.class_method_signature: Tracer.asAscii(Vector vec, String fmt, boolean showMeta)
focal_class.full_signature: public static String asAscii(Vector vec, String fmt, boolean showMeta)
focal_class.identifier: asAscii
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, String fmt, boolean showMeta)
focal_class.return: String
focal_class.signature: String asAscii(Vector vec, String fmt, boolean showMeta)
focal_class.class_method_signature: Tracer.showAscii(Matrix mtx)
focal_class.full_signature: public static void showAscii(Matrix mtx)
focal_class.identifier: showAscii
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx)
focal_class.return: void
focal_class.signature: void showAscii(Matrix mtx)
focal_class.class_method_signature: Tracer.rowStr(Matrix mtx, int row, String fmt)
focal_class.full_signature: private static String rowStr(Matrix mtx, int row, String fmt)
focal_class.identifier: rowStr
focal_class.modifiers: private static
focal_class.parameters: (Matrix mtx, int row, String fmt)
focal_class.return: String
focal_class.signature: String rowStr(Matrix mtx, int row, String fmt)
focal_class.class_method_signature: Tracer.showAscii(Matrix mtx, String fmt)
focal_class.full_signature: public static void showAscii(Matrix mtx, String fmt)
focal_class.identifier: showAscii
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx, String fmt)
focal_class.return: void
focal_class.signature: void showAscii(Matrix mtx, String fmt)
focal_class.class_method_signature: Tracer.asAscii(Matrix mtx, String fmt)
focal_class.full_signature: public static String asAscii(Matrix mtx, String fmt)
focal_class.identifier: asAscii
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx, String fmt)
focal_class.return: String
focal_class.signature: String asAscii(Matrix mtx, String fmt)
focal_class.class_method_signature: Tracer.showAscii(Matrix mtx, IgniteLogger log, String fmt)
focal_class.full_signature: public static void showAscii(Matrix mtx, IgniteLogger log, String fmt)
focal_class.identifier: showAscii
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx, IgniteLogger log, String fmt)
focal_class.return: void
focal_class.signature: void showAscii(Matrix mtx, IgniteLogger log, String fmt)
focal_class.class_method_signature: Tracer.showAscii(Vector vec)
focal_class.full_signature: public static void showAscii(Vector vec)
focal_class.identifier: showAscii
focal_class.modifiers: public static
focal_class.parameters: (Vector vec)
focal_class.return: void
focal_class.signature: void showAscii(Vector vec)
focal_class.class_method_signature: Tracer.saveAsCsv(Vector vec, String fmt, String filePath)
focal_class.full_signature: public static void saveAsCsv(Vector vec, String fmt, String filePath)
focal_class.identifier: saveAsCsv
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, String fmt, String filePath)
focal_class.return: void
focal_class.signature: void saveAsCsv(Vector vec, String fmt, String filePath)
focal_class.class_method_signature: Tracer.saveAsCsv(Matrix mtx, String fmt, String filePath)
focal_class.full_signature: public static void saveAsCsv(Matrix mtx, String fmt, String filePath)
focal_class.identifier: saveAsCsv
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx, String fmt, String filePath)
focal_class.return: void
focal_class.signature: void saveAsCsv(Matrix mtx, String fmt, String filePath)
focal_class.class_method_signature: Tracer.showHtml(Matrix mtx)
focal_class.full_signature: public static void showHtml(Matrix mtx)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx)
focal_class.return: void
focal_class.signature: void showHtml(Matrix mtx)
focal_class.class_method_signature: Tracer.showHtml(Matrix mtx, boolean useAsciiFallback)
focal_class.full_signature: public static void showHtml(Matrix mtx, boolean useAsciiFallback)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx, boolean useAsciiFallback)
focal_class.return: void
focal_class.signature: void showHtml(Matrix mtx, boolean useAsciiFallback)
focal_class.class_method_signature: Tracer.showHtml(Matrix mtx, ColorMapper cm)
focal_class.full_signature: public static void showHtml(Matrix mtx, ColorMapper cm)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx, ColorMapper cm)
focal_class.return: void
focal_class.signature: void showHtml(Matrix mtx, ColorMapper cm)
focal_class.class_method_signature: Tracer.showHtml(Matrix mtx, ColorMapper cm, boolean useAsciiFallback)
focal_class.full_signature: public static void showHtml(Matrix mtx, ColorMapper cm, boolean useAsciiFallback)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Matrix mtx, ColorMapper cm, boolean useAsciiFallback)
focal_class.return: void
focal_class.signature: void showHtml(Matrix mtx, ColorMapper cm, boolean useAsciiFallback)
focal_class.class_method_signature: Tracer.showHtml(Vector vec)
focal_class.full_signature: public static void showHtml(Vector vec)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Vector vec)
focal_class.return: void
focal_class.signature: void showHtml(Vector vec)
focal_class.class_method_signature: Tracer.showHtml(Vector vec, boolean useAsciiFallback)
focal_class.full_signature: public static void showHtml(Vector vec, boolean useAsciiFallback)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, boolean useAsciiFallback)
focal_class.return: void
focal_class.signature: void showHtml(Vector vec, boolean useAsciiFallback)
focal_class.class_method_signature: Tracer.showRegressionDatasetInHtml(String name, DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.full_signature: public static void showRegressionDatasetInHtml(String name, DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.identifier: showRegressionDatasetInHtml
focal_class.modifiers: public static
focal_class.parameters: (String name, DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.return: void
focal_class.signature: void showRegressionDatasetInHtml(String name, DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.class_method_signature: Tracer.showRegressionDatasetInHtml(DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.full_signature: public static void showRegressionDatasetInHtml(DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.identifier: showRegressionDatasetInHtml
focal_class.modifiers: public static
focal_class.parameters: (DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.return: void
focal_class.signature: void showRegressionDatasetInHtml(DataStreamGenerator generator, int limit,
          int xIdx)
focal_class.class_method_signature: Tracer.showClassificationDatasetHtml(DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.full_signature: public static void showClassificationDatasetHtml(DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.identifier: showClassificationDatasetHtml
focal_class.modifiers: public static
focal_class.parameters: (DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.return: void
focal_class.signature: void showClassificationDatasetHtml(DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.class_method_signature: Tracer.showClassificationDatasetHtml(String name, DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.full_signature: public static void showClassificationDatasetHtml(String name, DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.identifier: showClassificationDatasetHtml
focal_class.modifiers: public static
focal_class.parameters: (String name, DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.return: void
focal_class.signature: void showClassificationDatasetHtml(String name, DataStreamGenerator generator, int limit,
          int xIdx, int yIdx, boolean isLabeled)
focal_class.class_method_signature: Tracer.showVectorsHtml(String name, List<LabeledVector<Double>> values,
          int xIndex, Function<LabeledVector<Double>, Double> yGetter,
          Function<LabeledVector<Double>, Color> colorGetter)
focal_class.full_signature: private static void showVectorsHtml(String name, List<LabeledVector<Double>> values,
          int xIndex, Function<LabeledVector<Double>, Double> yGetter,
          Function<LabeledVector<Double>, Color> colorGetter)
focal_class.identifier: showVectorsHtml
focal_class.modifiers: private static
focal_class.parameters: (String name, List<LabeledVector<Double>> values,
          int xIndex, Function<LabeledVector<Double>, Double> yGetter,
          Function<LabeledVector<Double>, Color> colorGetter)
focal_class.return: void
focal_class.signature: void showVectorsHtml(String name, List<LabeledVector<Double>> values,
          int xIndex, Function<LabeledVector<Double>, Double> yGetter,
          Function<LabeledVector<Double>, Color> colorGetter)
focal_class.class_method_signature: Tracer.dataColorJson(double x, double y, Color clr)
focal_class.full_signature: private static String dataColorJson(double x, double y, Color clr)
focal_class.identifier: dataColorJson
focal_class.modifiers: private static
focal_class.parameters: (double x, double y, Color clr)
focal_class.return: String
focal_class.signature: String dataColorJson(double x, double y, Color clr)
focal_class.class_method_signature: Tracer.dataColorJson(double d, Color clr)
focal_class.full_signature: private static String dataColorJson(double d, Color clr)
focal_class.identifier: dataColorJson
focal_class.modifiers: private static
focal_class.parameters: (double d, Color clr)
focal_class.return: String
focal_class.signature: String dataColorJson(double d, Color clr)
focal_class.class_method_signature: Tracer.showHtml(Vector vec, ColorMapper cm)
focal_class.full_signature: public static void showHtml(Vector vec, ColorMapper cm)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, ColorMapper cm)
focal_class.return: void
focal_class.signature: void showHtml(Vector vec, ColorMapper cm)
focal_class.class_method_signature: Tracer.showHtml(Vector vec, ColorMapper cm, boolean useAsciiFallback)
focal_class.full_signature: public static void showHtml(Vector vec, ColorMapper cm, boolean useAsciiFallback)
focal_class.identifier: showHtml
focal_class.modifiers: public static
focal_class.parameters: (Vector vec, ColorMapper cm, boolean useAsciiFallback)
focal_class.return: void
focal_class.signature: void showHtml(Vector vec, ColorMapper cm, boolean useAsciiFallback)
focal_class.class_method_signature: Tracer.isBrowseSupported()
focal_class.full_signature: private static boolean isBrowseSupported()
focal_class.identifier: isBrowseSupported
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isBrowseSupported()
focal_class.class_method_signature: Tracer.fileToString(String fileName)
focal_class.full_signature: private static String fileToString(String fileName)
focal_class.identifier: fileToString
focal_class.modifiers: private static
focal_class.parameters: (String fileName)
focal_class.return: String
focal_class.signature: String fileToString(String fileName)
focal_class.class_method_signature: Tracer.openHtmlFile(String html)
focal_class.full_signature: private static void openHtmlFile(String html)
focal_class.identifier: openHtmlFile
focal_class.modifiers: private static
focal_class.parameters: (String html)
focal_class.return: void
focal_class.signature: void openHtmlFile(String html)
focal_class.class_method_signature: Tracer.mkString(Vector vec, String fmt)
focal_class.full_signature: private static String mkString(Vector vec, String fmt)
focal_class.identifier: mkString
focal_class.modifiers: private static
focal_class.parameters: (Vector vec, String fmt)
focal_class.return: String
focal_class.signature: String mkString(Vector vec, String fmt)
focal_class.class_method_signature: Tracer.mkJsArrayString(Vector vec, ColorMapper cm)
focal_class.full_signature: private static String mkJsArrayString(Vector vec, ColorMapper cm)
focal_class.identifier: mkJsArrayString
focal_class.modifiers: private static
focal_class.parameters: (Vector vec, ColorMapper cm)
focal_class.return: String
focal_class.signature: String mkJsArrayString(Vector vec, ColorMapper cm)
focal_class.class_method_signature: Tracer.mkJsArrayString(Matrix mtx, ColorMapper cm)
focal_class.full_signature: private static String mkJsArrayString(Matrix mtx, ColorMapper cm)
focal_class.identifier: mkJsArrayString
focal_class.modifiers: private static
focal_class.parameters: (Matrix mtx, ColorMapper cm)
focal_class.return: String
focal_class.signature: String mkJsArrayString(Matrix mtx, ColorMapper cm)
focal_class.class_method_signature: Tracer.mkString(Matrix mtx, String fmt)
focal_class.full_signature: private static String mkString(Matrix mtx, String fmt)
focal_class.identifier: mkString
focal_class.modifiers: private static
focal_class.parameters: (Matrix mtx, String fmt)
focal_class.return: String
focal_class.signature: String mkString(Matrix mtx, String fmt)
focal_method.body: public static void showAscii(Vector vec, IgniteLogger log, String fmt) {
          String cls = vec.getClass().getSimpleName();
  
          if (log.isInfoEnabled())
              log.info(String.format(LOCALE, "%s(%d) [%s]", cls, vec.size(), mkString(vec, fmt)));
      }
focal_method.class_method_signature: Tracer.showAscii(Vector vec, IgniteLogger log, String fmt)
focal_method.full_signature: public static void showAscii(Vector vec, IgniteLogger log, String fmt)
focal_method.identifier: showAscii
focal_method.invocations: getSimpleName getClass isInfoEnabled info format size mkString
focal_method.modifiers: public static
focal_method.parameters: (Vector vec, IgniteLogger log, String fmt)
focal_method.return: void
focal_method.signature: void showAscii(Vector vec, IgniteLogger log, String fmt)