@Override public void dataSetChanged(DataSetEvent e) { // TODO Auto-generated method stub dsa = e.getDataSetForApps(); String[] variableNames = dsa.getAttributeNamesNumeric(); System.out.println(Arrays.toString(variableNames)); String[] roadConnections = dsa.getStringArrayDataByName(DendrogramView.ROAD_CONNECTION); for (String s : roadConnections) { System.out.println(s); } for (String roadConnection : roadConnections) { // System.out.println(roadConnections.length); // System.out.println(roadConnections[2].charAt(0)); } /* * ReadShapeFileintoMatrix rsfMatrix = new * ReadShapeFileintoMatrix(roadConnections); try { * rsfMatrix.getMatrixfromShapefile(); } catch (Exception e1) { // TODO * Auto-generated catch block e1.printStackTrace(); } */ for (int i = 0; i < dsa.getNumberNumericAttributes(); i++) { double[] nthArray = dsa.getNumericDataAsDouble(i); // System.out.println(Arrays.toString(nthArray)); } }
@Override public void indicationChanged(IndicationEvent e) { // TODO Auto-generated method stub int obs = e.getIndication(); if (obs < 0) { return; } String name = dsa.getObservationName(obs); System.out.println(DendrogramView.class.getName() + " indication = " + obs + " " + name); }