Coder Social home page Coder Social logo

yujisode / meshrandom Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 335 KB

Tool that simulates two-dimensional sample distribution based on a sample defined mesh

License: MIT License

Tcl 100.00%
simulation tcl random-numbers coordinates sample-distribution numerical-analysis

meshrandom's Introduction

meshRandom

Tool that simulates two-dimensional sample distribution based on a sample defined mesh
GitHub: https://github.com/YujiSODE/meshRandom

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


meshRandom_IMG_sampleGraphs.png

Figure 1. Four sample data sets and simulated random coordinates.
A. data set model: y=3.0*x+5.0.
B. data set model: y=3.0*x+5.0*U where U is random number in (0,1).
C. data set model: y=sin(x).
D. data set model: (x,y)=(0.25*cos(n*ฯ€/2.0),0.25*sin(n*ฯ€/2.0)) where n=0,1,2,....
y^ is simulated random coordinates.

1. Description

Tool that simulates two-dimensional sample distribution based on a sample defined mesh.

1-1. Shell

  • tclsh meshRandom.tcl N xyList;

1-2. Tcl

  • ::meshRandom::randoms N xyList;

    • $N: number of random coordinates to return
    • $xyList: a list of xy-coordinate data, and every element is expressed as x,y

2. Concept

Supposing that two-dimensional sample distribution is composed of four sample points P1 to P4.
Sample points P are linked by paths F.
Random coordinates P^ are generated along a path Fij.
P^ is included within a distribution P1P2P3P4.

meshRandom_IMG_conceptIMG

Figure 2. Diagram showing concept of meshRandom.
Filled circles show sample points. Red lines show sample paths Fij beteween two sample points Pi and Pj.

3. Script

It requires Tcl 8.6+.

4. Library list

meshrandom's People

Contributors

yujisode avatar

Stargazers

 avatar

Watchers

 avatar  avatar

meshrandom'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.