Giter Site home page Giter Site logo

basemax / analyzecombine Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 26 KB

Analyze the combine with and without the repetition. (SOON)

License: GNU General Public License v3.0

PHP 100.00%
combine probability probability-calculator probability-statistics probability-distribution probability-theory combinatorics combinations combination combinational-logic

analyzecombine's Introduction

AnalyzeCombine

Analyze the combine with and without the repetition.

Initialise

$combine=new AnalyzeCombine();

Structure

Combine

array Combine(array $input);

List of all of the probability of the combine without repetition.


CombineLimit

array CombineLimit(array $input, int $limit);

List of all of the probability of the combine without repetition with limitation.


CombineRepeat

array CombineRepeat(array $input);

List of all of the probability of the combine with repetition.


CombineRepeatLimit

array CombineRepeatLimit(array $input, int $limit);

List of all of the probability of the combine with repetition with limitation.


CustomCombine

array CustomCombine(array $input);

List of all of the probability of the combine from custom values. (Favorable values with keeping position)

Demo :

$count=$combine->NCustomCombine([ ['x','y'] , ['x','y'] , ['x','y'] ]);
print $count; // 8
$array=$combine->CustomCombine([ ['x','y'] , ['x','y'] , ['x','y'] ]);
print_r($array);
Array
(
    [0] => Array
        (
            [0] => x
            [1] => x
            [2] => x
        )

    [1] => Array
        (
            [0] => x
            [1] => x
            [2] => y
        )

    [2] => Array
        (
            [0] => x
            [1] => y
            [2] => x
        )

    [3] => Array
        (
            [0] => x
            [1] => y
            [2] => y
        )

    [4] => Array
        (
            [0] => y
            [1] => x
            [2] => x
        )

    [5] => Array
        (
            [0] => y
            [1] => x
            [2] => y
        )

    [6] => Array
        (
            [0] => y
            [1] => y
            [2] => x
        )

    [7] => Array
        (
            [0] => y
            [1] => y
            [2] => y
        )

)

analyzecombine's People

Contributors

basemax avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

whitemike889

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.