From 83f2bf260dd6d08fe8d96cee19835b0633c05fc8 Mon Sep 17 00:00:00 2001 From: dmcnelis Date: Fri, 16 Dec 2011 14:23:24 -0600 Subject: [PATCH] Updated readme example formtting --- README.mkd | 60 ++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/README.mkd b/README.mkd index b775d7f..0d81b5a 100644 --- a/README.mkd +++ b/README.mkd @@ -12,38 +12,36 @@ that is not, please post an issue, a patch, or a unit test illustrating the issue. Example of running clustering -`java -class MyRecordClass extends Record { - @Feature - double myFeature1 - @Feature - double myFeature2 - @Feature - double myFeature3 - @Label - String myLabel; - Object nonFeatureItem; - String nonFeatureOrLabelString; - //Other stuff I want to do -} -` -` -class MyClusterRunner { - public static void main(String[] args) { - double epsilon = 4d; //Maximum distance between records in a cluster - int minClusterSize = 3; //Minimum number of records in a cluster - RecordList myRecords = new RecordList(); - //populate your object - DBScan dbscan = new DBScan(epsilon, minClusterSize); - db.setSourceData(list); - ArrayList clusters = db.getClusters(); - //do stuff with your clusters i.e. print record label and cluster - for(int i=0; i clusters = db.getClusters(); + //do stuff with your clusters i.e. print record label and cluster + for(int i=0; i