Code Monkey home page Code Monkey logo

1dca's Introduction

1dCA

Tool to estimate the rule for one-dimensional cellular automata.
GitHub: https://github.com/YujiSODE/1dCA

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


1. Description

Tool to estimate the rule for one-dimensional cellular automata.
::1dCA::scan map N; scans given map regarding as one-dimensional cellular automata to estimate the rule.
Newly estimated rule is expressed with probability that a cellular automaton returns value of 1.

  • $map: text map that is composed of 0, 1 and newline character (Unicode U+000A)
  • $N: number of cells to scan

[0.2+]xyToMap.tcl: text map from standard inputs

Text map can be generated from standard inputs with xyToMap.tcl.

Shell
tclsh xyToMap.tcl width height ?x0 y0 ?fileName??;
Tcl
xyToMap width height ?x0 y0 ?fileName??;

It accepts standard inputs to generate text map, and returns a new text map.
Generated map data is output in the current directory when $fileName is given.
END is a valid keyword for standard input to finish input.
Valid xy coordinates are expressed as x,y or x1,y1 x2,y2 ... xn,yn.

  • $width and $height: integer values that are not less than 2
  • $x0 and $y0: optional coordinates values for the top left of a map, which 0 or integers are available
  • $fileName: an optional file name to output in the current directory

2. Concept

Rule for one-dimensional cellular automaton

[c1|c2|c3]
[--|c0|--]
  • rule(c1,c2,c3) => c0
  • c0,c1,c2 and c3 = 0|1
  • 0 ≤ rule(c1,c2,c3) ≤ 1

3. Script

It requires Tcl 8.6+.

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.