clusterGraph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); JFrame jf = clusterGraph.showInJFrame("", false, true); for (int i = 0; i < clusters.length; i++) {
clusterGraph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); JFrame jf = clusterGraph.showInJFrame("", false, true); for (int i = 0; i < clusters.length; i++) {
clusterGraph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); JFrame jf = clusterGraph.showInJFrame("", false, true); for (int i = 0; i < clusters.length; i++) {
clusterGraph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); JFrame jf = clusterGraph.showInJFrame("", false, true); for (int i = 0; i < clusters.length; i++) {
clusterGraph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); JFrame jf = clusterGraph.showInJFrame("", false, true); for (int i = 0; i < clusters.length; i++) {
clusterGraph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); JFrame jf = clusterGraph.showInJFrame("", false, true); for (int i = 0; i < clusters.length; i++) {
public boolean compute() throws IOException, UnsupportedAudioFileException { logger.info("F0 polynomial feature file writer started."); f0Graph = new FunctionGraph(0, 1, new double[1]); f0Graph.setYMinMax(50, 550); f0Graph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); jf = f0Graph.showInJFrame("Sentence", false, true); String outPutFile = db.getProp(db.ROOTDIR) + File.separator + getProp(ONEWORD) + getProp(PARTBASENAME) + getProp(F0POLYFILE); featurePW = new PrintWriter(new FileWriter(new File(outPutFile))); for (int i = 0; i < bnlVocalizations.getLength(); i++) { percent = 100 * i / bnlVocalizations.getLength(); displaySentences(bnlVocalizations.getName(i)); } featurePW.flush(); featurePW.close(); System.out.println("Total Cost : " + costMeasure / (double) bnlVocalizations.getLength()); // String fileName = "/home/sathish/phd/voices/en-GB-listener/vocal-polynomials/SpiVocalizationF0PolyFeatureFile.txt"; int kValue = (new Integer(getProp(KCLUSTERS))).intValue(); KMeansClusterer kmc = new KMeansClusterer(); kmc.loadF0Polynomials(outPutFile); kmc.trainer(kValue); // System.exit(0); return true; }
f0Graph.setPrimaryDataSeriesStyle(Color.BLACK, FunctionGraph.DRAW_LINE, -1); JFrame jf = f0Graph.showInJFrame("Syllables in leaf", false, true); Random r = new Random();
f0Graph = new FunctionGraph(0, 1, new double[1]); f0Graph.setYMinMax(50, 300); f0Graph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); jf = f0Graph.showInJFrame("Sentence", false, true);
f0Graph = new FunctionGraph(0, 1, new double[1]); f0Graph.setYMinMax(50, 300); f0Graph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); jf = f0Graph.showInJFrame("Sentence", false, true);
f0Graph = new FunctionGraph(0, 1, new double[1]); f0Graph.setYMinMax(50, 300); f0Graph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); jf = f0Graph.showInJFrame("Sentence", false, true);
clusterGraph.setPrimaryDataSeriesStyle(Color.BLUE, FunctionGraph.DRAW_DOTS, FunctionGraph.DOT_FULLCIRCLE); JFrame jf = clusterGraph.showInJFrame("", false, true); for (int i = 0; i < clusters.length; i++) {