Giter Club home page Giter Club logo

reglines's Introduction

regLines

Tool for generating random variables that follows given frequency distibution using linear regressions in given intervals.
GitHub: https://github.com/YujiSODE/regLines
Wiki: https://github.com/YujiSODE/regLines/wiki

Copyright (c) 2018 Yuji SODE <[email protected]>
This software is released under the MIT License.
See LICENSE or http://opensource.org/licenses/mit-license.php


1. Synopsis

::regLines::reglines X Y ?name?;
it outputs tcl script file that defines additional math functions (lines(x), linesPDF(x) and linesVar()) and returns generated filename

  • $X and $Y: numerical lists for x-axis and y-axis
  • $name: a text used in order to generate filename of output file, and numbers are default value.
    generated filename has a form of "${name}_regL.tcl"

Input data ranges for linear regressions

Two expressions are available for linear regressions.

  1. dx
    data ranges are defined as v0 v1 ... vn where v0 and vn are the maximum and minimum values.
    vi=v(i-1)+dx and 0<i<n.

  2. x0 x1 ... xn
    data ranges are defined as x0 x1 ... xn.

2. Script

It requires Tcl/Tk 8.6+.

  • regLines.tcl

3. Functions defined by output tcl script file

  • lines(x): function that returns estimated sample distribution
  • linesPDF(x): function that returns a value of probability density function estimated from the sample distribution
  • linesVar(): function that returns a random variable following PDF
    • $x: a numerical value

4. Simplified implementation of linesVar() function

Simplified implementation in Tcl

Simplified implementation in JavaScript

5. Library list

reglines's People

Contributors

yujisode avatar

Stargazers

 avatar

Watchers

 avatar  avatar

reglines's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.