private void writeHisto(final float[] histogram) throws IOException {
        Path histPath = new TemporaryResources().createTempFile();
        try (Writer writer = Files.newBufferedWriter(histPath, UTF_8)) {
            for (float bin : histogram) {
                writer.write(bin + "\t");
                // writer.write(i + "\t");
            }
            writer.write("\r\n");
        }
    }
for testing purposes; this method write the histogram vector to a file.

@param histogram
@throws IOException
tika-core/src/main/java/org/apache/tika/detect/TrainedModelDetector.java