Changed (Δ12.8 KB):

raw changeset »

03/bicluster.rb (1 lines added, 1 lines removed)

03/clusters.rb (28 lines added, 6 lines removed)

03/log (1168 lines added, 0 lines removed)

03/test.rb (2 lines added, 0 lines removed)

Up to file-list 03/bicluster.rb:

@@ -14,7 +14,7 @@ class Bicluster
14
14
  end
15
15
  
16
16
  def vec
17
    return vec
17
    return @vec
18
18
  end
19
19
    
20
20
  def left

Up to file-list 03/clusters.rb:

@@ -22,9 +22,7 @@ class Clusters
22
22
    while clust.length > 1
23
23
      lowestpair = [0,1]
24
24
      closest = self.method(distance).call(clust[0].vec, clust[1].vec)
25
      
26
      puts 'asdf'
27
      
25
      p closest
28
26
      # すべての組をループし、もっとも距離の近い組を探す
29
27
      for i in 0...clust.length
30
28
        for j in i+1...clust.length
@@ -33,13 +31,33 @@ class Clusters
33
31
            distances[clust[i].id, clust[j].id] = self.method(distance).call(clust[i].vec, clust[j].vec)
34
32
          end
35
33
          
36
          d = self.method(distance).call(clust[i].id, clust[j].id)
34
          puts 'hoaaa'
37
35
          
36
          d = [distances[clust[i].id], distances[clust[j].id]]
37
          if d[0] < closest && d[1] < closest
38
            closest = d
39
            lowestpair = [1,j]
40
          end
38
41
        end
39
42
      end
40
43
      
44
      # 2つのクラスタの平均を計算する
45
      mergevec = Array.new
46
      for i in 0...clust[0].vec.length
47
        m = (clust[lowestpair[0]].vec[i] + clust[lowestpair[1]].vec[i])/2.0
48
        mergevec.push(m)
49
      end
50
      
51
      # 新たなクラスタを作る
52
      newcluster = Bicluster.new(mergevec, clust[lowestpair[0]], clust[lowestpair[1]], closest, currentclustid)
53
      
54
      # 元のセットではないクラスタのIDは負にする
55
      currentclustid -= 1
56
      clust.delete_at(lowestpair[1])
57
      clust.delete_at(lowestpair[0])
58
      clust.push(newcluster)
41
59
    end
42
    
60
    return clust[0]
43
61
  end
44
62
  
45
63
  # ピアソン相関距離を計算
@@ -98,7 +116,11 @@ class Clusters
98
116
      # それぞれの行の最初の列は行の名前(blog名)
99
117
      rownames.push(tmp.shift)
100
118
      # 行の残りの部分がその行のデータ
101
      data.push(tmp)
119
      wordcount = Array.new
120
      tmp.each{ |c|
121
        wordcount.push(c.to_i)
122
      }
123
      data.push(wordcount)
102
124
    }
103
125
104
126
    return rownames,colnames,data

Up to file-list 03/log:

1
["designed",
2
 "",
3
 "pretty",
4
 "approach",
5
 "folks",
6
 "perfect",
7
 "below",
8
 "appear",
9
 "plan",
10
 "across",
11
 "jpg",
12
 "play",
13
 "creative",
14
 "developers",
15
 "brings",
16
 "starts",
17
 "brought",
18
 "absolutely",
19
 "tried",
20
 "book",
21
 "success",
22
 "second",
23
 "similar",
24
 "costs",
25
 "street",
26
 "together",
27
 "rules",
28
 "anyone",
29
 "quite",
30
 "publishing",
31
 "working",
32
 "b",
33
 "f",
34
 "g",
35
 "h",
36
 "j",
37
 "k",
38
 "l",
39
 "direct",
40
 "price",
41
 "n",
42
 "o",
43
 "almost",
44
 "q",
45
 "r",
46
 "u",
47
 "v",
48
 "w",
49
 "x",
50
 "y",
51
 "z",
52
 "feedburner",
53
 "companies",
54
 "actual",
55
 "starting",
56
 "field",
57
 "next",
58
 "icon",
59
 "traditional",
60
 "behind",
61
 "tips",
62
 "maps",
63
 "isn",
64
 "lines",
65
 "middle",
66
 "wall",
67
 "solid",
68
 "presidential",
69
 "check",
70
 "mark",
71
 "wants",
72
 "gif",
73
 "blogspot",
74
 "goes",
75
 "writing",
76
 "green",
77
 "google",
78
 "needs",
79
 "scale",
80
 "biden",
81
 "bloggers",
82
 "however",
83
 "economy",
84
 "means",
85
 "links",
86
 "htm",
87
 "election",
88
 "super",
89
 "god",
90
 "expected",
91
 "bunch",
92
 "credit",
93
 "gov",
94
 "including",
95
 "small",
96
 "said",
97
 "course",
98
 "decided",
99
 "response",
100
 "plus",
101
 "hours",
102
 "dark",
103
 "runs",
104
 "place",
105
 "nbsp",
106
 "without",
107
 "code",
108
 "data",
109
 "date",
110
 "history",
111
 "reasons",
112
 "file",
113
 "police",
114
 "class",
115
 "speaking",
116
 "friday",
117
 "apparently",
118
 "audience",
119
 "visit",
120
 "guy",
121
 "false",
122
 "feeds",
123
 "fine",
124
 "smart",
125
 "living",
126
 "float",
127
 "games",
128
 "little",
129
 "standard",
130
 "october",
131
 "looks",
132
 "star",
133
 "weeks",
134
 "car",
135
 "stay",
136
 "london",
137
 "despite",
138
 "fire",
139
 "present",
140
 "problems",
141
 "lots",
142
 "friend",
143
 "tell",
144
 "allowscriptaccess",
145
 "tells",
146
 "details",
147
 "love",
148
 "attention",
149
 "culture",
150
 "crisis",
151
 "brand",
152
 "party",
153
 "each",
154
 "thinking",
155
 "step",
156
 "ceo",
157
 "pheedo",
158
 "five",
159
 "block",
160
 "home",
161
 "vote",
162
 "reading",
163
 "turns",
164
 "running",
165
 "created",
166
 "copy",
167
 "children",
168
 "term",
169
 "process",
170
 "technology",
171
 "amazon",
172
 "says",
173
 "seems",
174
 "finally",
175
 "possible",
176
 "control",
177
 "align",
178
 "blogs",
179
 "computer",
180
 "among",
181
 "sure",
182
 "ever",
183
 "especially",
184
 "eye",
185
 "series",
186
 "category",
187
 "host",
188
 "polls",
189
 "color",
190
 "text",
191
 "particular",
192
 "extra",
193
 "stop",
194
 "hour",
195
 "act",
196
 "office",
197
 "question",
198
 "customer",
199
 "keep",
200
 "speech",
201
 "calls",
202
 "move",
203
 "quality",
204
 "clip",
205
 "age",
206
 "object",
207
 "answer",
208
 "ago",
209
 "create",
210
 "dollars",
211
 "press",
212
 "education",
213
 "specific",
214
 "inside",
215
 "felt",
216
 "audio",
217
 "energy",
218
 "cut",
219
 "air",
220
 "easy",
221
 "moment",
222
 "track",
223
 "nytimes",
224
 "articles",
225
 "season",
226
 "outside",
227
 "life",
228
 "platform",
229
 "helps",
230
 "knowledge",
231
 "via",
232
 "public",
233
 "wireless",
234
 "minute",
235
 "church",
236
 "candidates",
237
 "taken",
238
 "several",
239
 "picture",
240
 "places",
241
 "span",
242
 "amp",
243
 "takes",
244
 "provides",
245
 "messages",
246
 "research",
247
 "changes",
248
 "larger",
249
 "talk",
250
 "points",
251
 "role",
252
 "does",
253
 "sunday",
254
 "hands",
255
 "wordpress",
256
 "light",
257
 "happy",
258
 "rather",
259
 "tag",
260
 "whole",
261
 "within",
262
 "build",
263
 "ask",
264
 "built",
265
 "started",
266
 "making",
267
 "line",
268
 "link",
269
 "offer",
270
 "questions",
271
 "explain",
272
 "jump",
273
 "legal",
274
 "ten",
275
 "happened",
276
 "future",
277
 "believe",
278
 "able",
279
 "readers",
280
 "wrong",
281
 "majority",
282
 "single",
283
 "high",
284
 "entertainment",
285
 "release",
286
 "gadgets",
287
 "percent",
288
 "president",
289
 "live",
290
 "best",
291
 "url",
292
 "social",
293
 "everyone",
294
 "sold",
295
 "washington",
296
 "human",
297
 "style",
298
 "she",
299
 "short",
300
 "client",
301
 "wrote",
302
 "chris",
303
 "blogger",
304
 "music",
305
 "tom",
306
 "top",
307
 "fall",
308
 "red",
309
 "around",
310
 "rel",
311
 "spend",
312
 "expect",
313
 "reviews",
314
 "mind",
315
 "wikipedia",
316
 "spent",
317
 "three",
318
 "adding",
319
 "having",
320
 "international",
321
 "fans",
322
 "obviously",
323
 "guide",
324
 "city",
325
 "global",
326
 "sort",
327
 "left",
328
 "anyway",
329
 "friends",
330
 "imagine",
331
 "early",
332
 "country",
333
 "board",
334
 "month",
335
 "reader",
336
 "software",
337
 "result",
338
 "easier",
339
 "record",
340
 "googleadservices",
341
 "pay",
342
 "under",
343
 "head",
344
 "pages",
345
 "strong",
346
 "hear",
347
 "community",
348
 "part",
349
 "permalink",
350
 "open",
351
 "per",
352
 "product",
353
 "advertising",
354
 "north",
355
 "study",
356
 "common",
357
 "rss",
358
 "stuff",
359
 "previous",
360
 "building",
361
 "auto",
362
 "feedproxy",
363
 "run",
364
 "watch",
365
 "system",
366
 "option",
367
 "lets",
368
 "local",
369
 "review",
370
 "area",
371
 "related",
372
 "features",
373
 "aren",
374
 "multiple",
375
 "different",
376
 "baby",
377
 "water",
378
 "profile",
379
 "devices",
380
 "wiki",
381
 "server",
382
 "border",
383
 "nice",
384
 "favorite",
385
 "doing",
386
 "matter",
387
 "once",
388
 "action",
389
 "looking",
390
 "myspace",
391
 "products",
392
 "writer",
393
 "words",
394
 "aspx",
395
 "thanks",
396
 "launch",
397
 "ones",
398
 "side",
399
 "old",
400
 "net",
401
 "leading",
402
 "months",
403
 "index",
404
 "wish",
405
 "consumer",
406
 "white",
407
 "makes",
408
 "during",
409
 "put",
410
 "limited",
411
 "embed",
412
 "applications",
413
 "bank",
414
 "ba",
415
 "bb",
416
 "bc",
417
 "camera",
418
 "bd",
419
 "bf",
420
 "updates",
421
 "took",
422
 "tool",
423
 "org",
424
 "network",
425
 "game",
426
 "br",
427
 "mentioned",
428
 "follow",
429
 "campaign",
430
 "pictures",
431
 "da",
432
 "db",
433
 "dc",
434
 "dd",
435
 "de",
436
 "either",
437
 "sarah",
438
 "df",
439
 "level",
440
 "interest",
441
 "added",
442
 "sometimes",
443
 "based",
444
 "law",
445
 "states",
446
 "marketing",
447
 "editor",
448
 "fa",
449
 "wonder",
450
 "fb",
451
 "total",
452
 "fc",
453
 "fd",
454
 "fe",
455
 "phone",
456
 "ff",
457
 "hspace",
458
 "non",
459
 "fm",
460
 "sources",
461
 "fs",
462
 "against",
463
 "playing",
464
 "position",
465
 "height",
466
 "static",
467
 "york",
468
 "hl",
469
 "hm",
470
 "spending",
471
 "let",
472
 "basic",
473
 "ht",
474
 "dead",
475
 "write",
476
 "family",
477
 "deal",
478
 "worth",
479
 "something",
480
 "voice",
481
 "else",
482
 "la",
483
 "message",
484
 "li",
485
 "table",
486
 "site",
487
 "lm",
488
 "late",
489
 "photo",
490
 "script",
491
 "himself",
492
 "involved",
493
 "economic",
494
 "content",
495
 "call",
496
 "least",
497
 "shot",
498
 "members",
499
 "deep",
500
 "show",
501
 "services",
502
 "reported",
503
 "pc",
504
 "near",
505
 "experience",
506
 "javascript",
507
 "mobile",
508
 "pm",
509
 "blockquote",
510
 "pr",
511
 "completely",
512
 "px",
513
 "whether",
514
 "black",
515
 "catch",
516
 "value",
517
 "sense",
518
 "books",
519
 "saying",
520
 "notice",
521
 "size",
522
 "lot",
523
 "low",
524
 "need",
525
 "quick",
526
 "sharing",
527
 "card",
528
 "td",
529
 "care",
530
 "th",
531
 "food",
532
 "knew",
533
 "tv",
534
 "looked",
535
 "provide",
536
 "idea",
537
 "woman",
538
 "vm",
539
 "views",
540
 "vs",
541
 "reason",
542
 "xb",
543
 "private",
544
 "hasn",
545
 "west",
546
 "instead",
547
 "difference",
548
 "appears",
549
 "break",
550
 "terms",
551
 "options",
552
 "simple",
553
 "minutes",
554
 "child",
555
 "women",
556
 "zm",
557
 "students",
558
 "simply",
559
 "flash",
560
 "four",
561
 "upon",
562
 "financial",
563
 "china",
564
 "focused",
565
 "author",
566
 "self",
567
 "moving",
568
 "sell",
569
 "security",
570
 "characters",
571
 "bold",
572
 "job",
573
 "joe",
574
 "whatever",
575
 "company",
576
 "james",
577
 "send",
578
 "numbers",
579
 "feature",
580
 "sent",
581
 "reality",
582
 "download",
583
 "longer",
584
 "library",
585
 "mail",
586
 "main",
587
 "issues",
588
 "html",
589
 "store",
590
 "giving",
591
 "story",
592
 "him",
593
 "thing",
594
 "posts",
595
 "hit",
596
 "archive",
597
 "topic",
598
 "must",
599
 "performance",
600
 "posted",
601
 "both",
602
 "order",
603
 "along",
604
 "recent",
605
 "haven",
606
 "wait",
607
 "special",
608
 "available",
609
 "later",
610
 "third",
611
 "above",
612
 "remember",
613
 "latest",
614
 "fan",
615
 "far",
616
 "probably",
617
 "sounds",
618
 "certainly",
619
 "customers",
620
 "itself",
621
 "param",
622
 "putting",
623
 "maybe",
624
 "hot",
625
 "likely",
626
 "growth",
627
 "various",
628
 "sales",
629
 "rate",
630
 "political",
631
 "widget",
632
 "between",
633
 "logo",
634
 "safe",
635
 "version",
636
 "called",
637
 "tools",
638
 "david",
639
 "amazing",
640
 "design",
641
 "wasn",
642
 "comment",
643
 "team",
644
 "fix",
645
 "kids",
646
 "movie",
647
 "funny",
648
 "unique",
649
 "gone",
650
 "pick",
651
 "tech",
652
 "traffic",
653
 "house",
654
 "center",
655
 "name",
656
 "nothing",
657
 "share",
658
 "entry",
659
 "groups",
660
 "sale",
661
 "large",
662
 "such",
663
 "million",
664
 "ways",
665
 "couple",
666
 "fox",
667
 "comes",
668
 "beautiful",
669
 "developer",
670
 "turned",
671
 "brain",
672
 "though",
673
 "directly",
674
 "phdo",
675
 "allow",
676
 "kind",
677
 "paper",
678
 "days",
679
 "lost",
680
 "end",
681
 "hundreds",
682
 "discussion",
683
 "understand",
684
 "personal",
685
 "stories",
686
 "charge",
687
 "did",
688
 "exactly",
689
 "reach",
690
 "fun",
691
 "radio",
692
 "republican",
693
 "launched",
694
 "original",
695
 "div",
696
 "number",
697
 "width",
698
 "yes",
699
 "come",
700
 "yet",
701
 "management",
702
 "showing",
703
 "weight",
704
 "save",
705
 "plans",
706
 "report",
707
 "cool",
708
 "nearly",
709
 "bad",
710
 "interview",
711
 "etc",
712
 "quickly",
713
 "worked",
714
 "bill",
715
 "weekly",
716
 "hope",
717
 "internet",
718
 "recently",
719
 "test",
720
 "fear",
721
 "support",
722
 "cost",
723
 "themselves",
724
 "gmail",
725
 "willing",
726
 "update",
727
 "missing",
728
 "war",
729
 "enough",
730
 "engine",
731
 "industry",
732
 "interface",
733
 "feed",
734
 "announced",
735
 "america",
736
 "feel",
737
 "cnn",
738
 "firefox",
739
 "trying",
740
 "web",
741
 "big",
742
 "tracker",
743
 "beyond",
744
 "development",
745
 "never",
746
 "bit",
747
 "add",
748
 "issue",
749
 "chicago",
750
 "road",
751
 "type",
752
 "ads",
753
 "thought",
754
 "interested",
755
 "released",
756
 "search",
757
 "computers",
758
 "powerful",
759
 "important",
760
 "releases",
761
 "government",
762
 "potential",
763
 "before",
764
 "rock",
765
 "couldn",
766
 "shockwave",
767
 "drop",
768
 "win",
769
 "drive",
770
 "telling",
771
 "higher",
772
 "others",
773
 "particularly",
774
 "box",
775
 "chance",
776
 "twitter",
777
 "buying",
778
 "player",
779
 "bottom",
780
 "taking",
781
 "alt",
782
 "learned",
783
 "choose",
784
 "padding",
785
 "things",
786
 "talks",
787
 "won",
788
 "service",
789
 "access",
790
 "assets",
791
 "watching",
792
 "vice",
793
 "change",
794
 "gallery",
795
 "iphone",
796
 "japanese",
797
 "buy",
798
 "official",
799
 "app",
800
 "palin",
801
 "piece",
802
 "article",
803
 "view",
804
 "further",
805
 "growing",
806
 "purchase",
807
 "sites",
808
 "away",
809
 "room",
810
 "barack",
811
 "example",
812
 "art",
813
 "program",
814
 "amount",
815
 "addition",
816
 "notes",
817
 "general",
818
 "voting",
819
 "usually",
820
 "everything",
821
 "point",
822
 "application",
823
 "according",
824
 "given",
825
 "using",
826
 "gives",
827
 "word",
828
 "face",
829
 "done",
830
 "san",
831
 "whose",
832
 "saw",
833
 "say",
834
 "business",
835
 "fact",
836
 "focus",
837
 "speed",
838
 "ability",
839
 "give",
840
 "info",
841
 "money",
842
 "list",
843
 "california",
844
 "talking",
845
 "average",
846
 "please",
847
 "michael",
848
 "morning",
849
 "popular",
850
 "competition",
851
 "beta",
852
 "set",
853
 "leaving",
854
 "none",
855
 "account",
856
 "serious",
857
 "written",
858
 "steve",
859
 "matters",
860
 "close",
861
 "turn",
862
 "lead",
863
 "individual",
864
 "school",
865
 "getting",
866
 "online",
867
 "six",
868
 "magazine",
869
 "billion",
870
 "page",
871
 "images",
872
 "soon",
873
 "front",
874
 "event",
875
 "choice",
876
 "yesterday",
877
 "apart",
878
 "events",
879
 "address",
880
 "paid",
881
 "continue",
882
 "note",
883
 "asking",
884
 "shows",
885
 "thread",
886
 "try",
887
 "final",
888
 "awesome",
889
 "trust",
890
 "might",
891
 "allowfullscreen",
892
 "actually",
893
 "obvious",
894
 "found",
895
 "problem",
896
 "fast",
897
 "learning",
898
 "science",
899
 "mccain",
900
 "forums",
901
 "edition",
902
 "offering",
903
 "rich",
904
 "certain",
905
 "conversation",
906
 "full",
907
 "facebook",
908
 "information",
909
 "happens",
910
 "famous",
911
 "federal",
912
 "offers",
913
 "title",
914
 "person",
915
 "pdf",
916
 "machines",
917
 "language",
918
 "following",
919
 "saturday",
920
 "swf",
921
 "ideas",
922
 "project",
923
 "businesses",
924
 "past",
925
 "again",
926
 "wide",
927
 "anything",
928
 "mean",
929
 "jobs",
930
 "seeing",
931
 "interesting",
932
 "space",
933
 "already",
934
 "ends",
935
 "paul",
936
 "market",
937
 "easily",
938
 "asked",
939
 "gets",
940
 "behavior",
941
 "consider",
942
 "american",
943
 "display",
944
 "php",
945
 "less",
946
 "wanted",
947
 "oct",
948
 "voters",
949
 "meet",
950
 "device",
951
 "didn",
952
 "testing",
953
 "click",
954
 "photos",
955
 "start",
956
 "since",
957
 "true",
958
 "state",
959
 "although",
960
 "files",
961
 "john",
962
 "thousands",
963
 "users",
964
 "feedflare",
965
 "someone",
966
 "rights",
967
 "august",
968
 "sound",
969
 "held",
970
 "comments",
971
 "free",
972
 "conference",
973
 "lives",
974
 "png",
975
 "perhaps",
976
 "help",
977
 "reports",
978
 "archives",
979
 "enjoy",
980
 "evidence",
981
 "pre",
982
 "microsoft",
983
 "risk",
984
 "pro",
985
 "needed",
986
 "mac",
987
 "mad",
988
 "power",
989
 "south",
990
 "man",
991
 "map",
992
 "used",
993
 "group",
994
 "told",
995
 "may",
996
 "become",
997
 "daily",
998
 "user",
999
 "uses",
1000
 "website",
1001
 "sign",
1002
 "opportunity",
1003
 "bush",
1004
 "aa",
1005
 "ab",
1006
 "ac",
1007
 "ad",
1008
 "ae",
1009
 "af",
1010
 "cover",
1011
 "touch",
1012
 "al",
1013
 "am",
1014
 "unfortunately",
1015
 "ap",
1016
 "works",
1017
 "networks",
1018
 "includes",
1019
 "men",
1020
 "projects",
1021
 "browser",
1022
 "ca",
1023
 "cb",
1024
 "cc",
1025
 "read",
1026
 "cd",
1027
 "ce",
1028
 "cf",
1029
 "forum",
1030
 "vspace",
1031
 "real",
1032
 "image",
1033
 "politics",
1034
 "co",
1035
 "forward",
1036
 "wouldn",
1037
 "mostly",
1038
 "ea",
1039
 "eb",
1040
 "ec",
1041
 "often",
1042
 "ed",
1043
 "ee",
1044
 "ef",
1045
 "yourself",
1046
 "tough",
1047
 "em",
1048
 "en",
1049
 "apple",
1050
 "base",
1051
 "earlier",
1052
 "youtube",
1053
 "named",
1054
 "corporate",
1055
 "register",
1056
 "japan",
1057
 "names",
1058
 "coming",
1059
 "id",
1060
 "im",
1061
 "parents",
1062
 "worst",
1063
 "yahoo",
1064
 "machine",
1065
 "include",
1066
 "websites",
1067
 "increasingly",
1068
 "gave",
1069
 "email",
1070
 "clear",
1071
 "night",
1072
 "current",
1073
 "learn",
1074
 "university",
1075
 "bring",
1076
 "button",
1077
 "mm",
1078
 "mp",
1079
 "apps",
1080
 "mr",
1081
 "margin",
1082
 "candidate",
1083
 "guess",
1084
 "return",
1085
 "target",
1086
 "came",
1087
 "oh",
1088
 "source",
1089
 "key",
1090
 "ol",
1091
 "strike",
1092
 "videos",
1093
 "blogging",
1094
 "phones",
1095
 "os",
1096
 "currently",
1097
 "major",
1098
 "leave",
1099
 "format",
1100
 "half",
1101
 "location",
1102
 "national",
1103
 "qm",
1104
 "always",
1105
 "newspaper",
1106
 "heard",
1107
 "november",
1108
 "hand",
1109
 "known",
1110
 "knows",
1111
 "times",
1112
 "flickr",
1113
 "mdash",
1114
 "chief",
1115
 "heart",
1116
 "until",
1117
 "myself",
1118
 "went",
1119
 "sports",
1120
 "st",
1121
 "windows",
1122
 "former",
1123
 "font",
1124
 "happen",
1125
 "results",
1126
 "case",
1127
 "cash",
1128
 "uk",
1129
 "ul",
1130
 "um",
1131
 "scene",
1132
 "media",
1133
 "rest",
1134
 "huge",
1135
 "seem",
1136
 "seen",
1137
 "hard",
1138
 "doesn",
1139
 "poll",
1140
 "model",
1141
 "creating",
1142
 "obama",
1143
 "form",
1144
 "listen",
1145
 "entire",
1146
 "hate",
1147
 "successful",
1148
 "systems",
1149
 "ym",
1150
 "decision",
1151
 "screen",
1152
 "guys",
1153
 "allows",
1154
 "death",
1155
 "selling",
1156
 "digital",
1157
 "attack",
1158
 "cause",
1159
 "itunes",
1160
 "better",
1161
 "contact",
1162
 "connection",
1163
 "weekend",
1164
 "figure",
1165
 "blank",
1166
 "useful",
1167
 "commercial",
1168
 "race"]

Up to file-list 03/test.rb:

@@ -15,7 +15,9 @@ require 'clusters.rb'
15
15
16
16
cs = Clusters.new
17
17
blognames,words,data = cs.readline('myblogdata.txt')
18
18
19
clust = cs.hcluster(data)
20
pp clust
19
21
20
22
21
23