Simple tool for estimating frequencies of random variables.
GitHub: https://github.com/YujiSODE/randFreq
Wiki: https://github.com/YujiSODE/randFreq/wiki
Copyright (c) 2018 Yuji SODE <yuji.sode@gmail.com>
This software is released under the MIT License.
See LICENSE or http://opensource.org/licenses/mit-license.php
Shell
tclsh randFreq.tcl "X0" ?"X1" ? ... "Xn"??;
X0
: lists of numerical values e.g., 0.5 0.2 1.0X1
toXn
: optional lists of numerical values
Tcl
::randFreq::getFreq values;
It returns estimated frequencies from given data set.
$values
: a list of numerical lists e.g.,{{v11 v12 ... v1n} ... {vM1 ... vMm}}
::randFreq::outputFreq values ?char?;
It outputs estimated frequencies as utf-8 encoded text in the current directory.
$values
: a list of numerical lists e.g.,{{v11 v12 ... v1n} ... {vM1 ... vMm}}
$char
: a join character; tab character is default value
::randFreq::loadFile filePath char ?encoding?;
It reads a given file and returns a list of numerical list.
$filePath
: filePath of a given file$char
: a character used in order to split loaded data$encoding
: an optional encoding of given file
It requires Tcl/Tk 8.6+.
randFreq.tcl