Skip to content

Commit 8829a06

Browse files
authored
Merge pull request #4 from YujiSODE/Y20180122-02
Y20180122 02
2 parents 9da2371 + d225b4d commit 8829a06

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ ______
1818
It returns estimated frequencies from given data set.
1919
- `$values`: a list of numerical lists e.g., `{{v11 v12 ... v1n} ... {vM1 ... vMm}}`
2020

21-
`::randFreq::outputFreq values ?joinChar?;`
21+
`::randFreq::outputFreq values ?char?;`
2222
It outputs estimated frequencies as utf-8 encoded text in the current directory.
2323
- `$values`: a list of numerical lists e.g., `{{v11 v12 ... v1n} ... {vM1 ... vMm}}`
24-
- `$joinChar`: a join character; tab character is default value
24+
- `$char`: a join character; tab character is default value
2525

2626
`::randFreq::loadFile filePath char ?encoding?;`
2727
It reads a given file and returns a list of numerical list.

randFreq.tcl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
#
2222
# - $values: a list of numerical lists e.g., {{v11 v12 ... v1n} ... {vM1 ... vMm}}
2323
#
24-
#::randFreq::outputFreq values ?Char?;
24+
#::randFreq::outputFreq values ?char?;
2525
#It outputs estimated frequencies as utf-8 encoded text in the current directory.
2626
#
2727
# - $values: a list of numerical lists e.g., {{v11 v12 ... v1n} ... {vM1 ... vMm}}
28-
# - $Char: a join character; tab character is default value
28+
# - $char: a join character; tab character is default value
2929
#
3030
#::randFreq::loadFile filePath char ?encoding?;
3131
#It reads a given file and returns a list of numerical list
@@ -139,14 +139,14 @@ namespace eval ::randFreq {
139139
return $result;
140140
};
141141
#procedure that outputs result as utf-8 encoded text in the current directory
142-
proc outputFreq {values {Char \t}} {
142+
proc outputFreq {values {char \t}} {
143143
# - $values: a list of numerical lists e.g., {{v11 v12 ... v1n} ... {vM1 ... vMm}}
144-
# - $Char: a join character; tab character is default value
144+
# - $char: a join character; tab character is default value
145145
set R [::randFreq::getFreq $values];
146146
set C [open "[clock seconds]dataFreq.txt" w];
147147
fconfigure $C -encoding utf-8;
148148
foreach e $R {
149-
puts -nonewline $C "[join $e $joinChar]\n";
149+
puts -nonewline $C "[join $e $char]\n";
150150
};
151151
puts stdout $R;
152152
close $C;unset C R;

0 commit comments

Comments
 (0)