-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdistribution.gplot
95 lines (90 loc) · 3.6 KB
/
distribution.gplot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#################################################
# Used to generate distribution of word-class sizes
#
set term postscript eps enhanced color 28
set out 'words-in-class.eps'
# set term png
# set out 'words-in-class.png'
set logscale y
set logscale x
set xrange [1:140]
set yrange [1:200]
set title "Number of words in each word-class"
set xlabel "Size rank of word-class"
set ylabel "Number of words in word-class"
plot "words-block55.dat" using 1:2 with lines linewidth 5 title "Block-5x5", \
"words-fuzz52.dat" using 1:2 with lines linewidth 5 title "Fuzz-5x2", \
"words-disc52.dat" using 1:2 with lines linewidth 5 title "Discrim-5x2", \
"words-block55.dat" using 1:(170.0/($1)** 0.95) with lines linewidth 2 \
title "170 / N^{0.95}"
#################################################
#################################################
# Used to generate distribution of word-class sizes
#
set term postscript eps enhanced color 28
set out 'support-of-class.eps'
# set term png
# set out 'support-of-class.png'
set key bottom left
set logscale y
set logscale x
set xrange [1:140]
set yrange [1e3:2e6]
set format y "10^{%4T}"
set title "Unique disjuncts in each word-class"
set xlabel "Rank of word-class"
set ylabel "Number of unique disjuncts"
plot "support-block55.dat" using 1:2 with lines linewidth 5 title "Block-5x5", \
"support-fuzz52.dat" using 1:2 with lines linewidth 5 title "Fuzz-5x2", \
"support-disc52.dat" using 1:2 with lines linewidth 5 title "Discrim-5x2", \
"support-disc52.dat" using 1:(1e6/($1)** 0.7) with lines linewidth 2 \
title "1x10^6 / N^{0.7}", \
"support-disc52.dat" using 1:(3e7/($1)** 2) with lines linewidth 2 \
title "3x10^7 / N^{2}"
#################################################
#################################################
# Used to generate distribution of word-class sizes
#
set term postscript eps enhanced color 28
set out 'count-of-class.eps'
# set term png
# set out 'count-of-class.png'
set logscale y
set logscale x
set xrange [1:140]
set yrange [1e3:5e6]
set format y "10^{%4T}"
set title "Total observations of disjuncts in each word-class"
set xlabel "Rank of word-class"
set ylabel "Num observations of disjuncts"
plot "count-block55.dat" using 1:2 with lines linewidth 5 title "Block-5x5", \
"count-fuzz52.dat" using 1:2 with lines linewidth 5 title "Fuzz-5x2", \
"count-disc52.dat" using 1:2 with lines linewidth 5 title "Discrim-5x2", \
"count-disc52.dat" using 1:(2e6/($1)** 1.0) with lines linewidth 2 \
title "2x10^6 / N^{1.0}", \
"count-disc52.dat" using 1:(2e8/($1)** 2.5) with lines linewidth 2 \
title "2x10^8 / N^{2.5}"
#################################################
#################################################
# Used to generate distribution of word-class sizes
#
set term postscript eps enhanced color 28
set out 'length-of-class.eps'
# set term png
# set out 'length-of-class.png'
set logscale y
set logscale x
set xrange [1:140]
set yrange [1e2:3e5]
set format y "10^{%4T}"
set title "Root-mean-square disjuncts in each word-class"
set xlabel "Rank of word-class"
set ylabel "RMS observations of disjuncts"
plot "length-block55.dat" using 1:2 with lines linewidth 5 title "Block-5x5", \
"length-fuzz52.dat" using 1:2 with lines linewidth 5 title "Fuzz-5x2", \
"length-disc52.dat" using 1:2 with lines linewidth 5 title "Discrim-5x2", \
"length-disc52.dat" using 1:(2e5/($1)** 1.0) with lines linewidth 2 \
title "2x10^5 / N^{1.0}", \
"length-disc52.dat" using 1:(2e7/($1)** 2.5) with lines linewidth 2 \
title "2x10^7 / N^{2.5}"
#################################################