File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ ______
1818It 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 ?; `
2222It 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?; `
2727It reads a given file and returns a list of numerical list.
Original file line number Diff line number Diff line change 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;
You can’t perform that action at this time.
0 commit comments