org.mariuszgromada.math.mxparser.parsertokens.RandomVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MathParser.org-mXparser Show documentation
Show all versions of MathParser.org-mXparser Show documentation
mXparser is a super easy, rich, fast and highly flexible math expression parser library (parser and evaluator of mathematical expressions / formulas provided as plain text / string). Software delivers easy to use API for JAVA, Android and C# .NET/MONO (Common Language Specification compliant: F#, Visual Basic, C++/CLI). *** If you find the software useful donation is something you might consider: https://mathparser.org/donate/ *** Scalar Scientific Calculator, Charts and Scripts, Scalar Lite: https://play.google.com/store/apps/details?id=org.mathparser.scalar.lite *** Scalar Pro: https://play.google.com/store/apps/details?id=org.mathparser.scalar.pro *** ScalarMath.org: https://scalarmath.org/ *** MathSpace.pl: https://mathspace.pl/ ***
/*
* @(#)RandomVariable.java 4.4.3 2022-05-28
*
* MathParser.org-mXparser DUAL LICENSE AGREEMENT as of date 2022-05-22
* The most up-to-date license is available at the below link:
* - https://mathparser.org/mxparser-license
*
* AUTHOR: Copyright 2010 - 2022 Mariusz Gromada - All rights reserved
* PUBLISHER: INFIMA - https://payhip.com/infima
*
* SOFTWARE means source code and/or binary form and/or documentation.
* PRODUCT: MathParser.org-mXparser SOFTWARE
* LICENSE: DUAL LICENSE AGREEMENT
*
* BY INSTALLING, COPYING, OR OTHERWISE USING THE PRODUCT, YOU AGREE TO BE
* BOUND BY ALL OF THE TERMS AND CONDITIONS OF THE DUAL LICENSE AGREEMENT.
*
* AUTHOR & PUBLISHER provide the PRODUCT under the DUAL LICENSE AGREEMENT
* model designed to meet the needs of both non-commercial use as well as
* commercial use.
*
* NON-COMMERCIAL USE means any use or activity where a fee is not charged
* and the purpose is not the sale of a good or service, and the use or
* activity is not intended to produce a profit. NON-COMMERCIAL USE examples:
*
* 1. Free Open-Source Software ("FOSS").
* 2. Non-commercial use in research, scholarly and education.
*
* COMMERCIAL USE means any use or activity where a fee is charged or the
* purpose is the sale of a good or service, or the use or activity is
* intended to produce a profit. COMMERCIAL USE examples:
*
* 1. OEMs (Original Equipment Manufacturers).
* 2. ISVs (Independent Software Vendors).
* 3. VARs (Value Added Resellers).
* 4. Other distributors that combine and distribute commercially licensed
* software.
*
* IN CASE YOU WANT TO USE THE PRODUCT COMMERCIALLY, YOU MUST PURCHASE THE
* APPROPRIATE LICENSE FROM "INFIMA" ONLINE STORE, STORE ADDRESS:
*
* 1. https://mathparser.org/order-commercial-license
* 2. https://payhip.com/infima
*
* NON-COMMERCIAL LICENSE
*
* Redistribution and use of the PRODUCT in source and/or binary forms,
* with or without modification, are permitted provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain unmodified content of the
* entire MathParser.org-mXparser DUAL LICENSE AGREEMENT, including
* definition of NON-COMMERCIAL USE, definition of COMMERCIAL USE,
* NON-COMMERCIAL LICENSE conditions, COMMERCIAL LICENSE conditions, and
* the following DISCLAIMER.
* 2. Redistributions in binary form must reproduce the entire content of
* MathParser.org-mXparser DUAL LICENSE AGREEMENT in the documentation
* and/or other materials provided with the distribution, including
* definition of NON-COMMERCIAL USE, definition of COMMERCIAL USE,
* NON-COMMERCIAL LICENSE conditions, COMMERCIAL LICENSE conditions, and
* the following DISCLAIMER.
*
* COMMERCIAL LICENSE
*
* 1. Before purchasing a commercial license, AUTHOR & PUBLISHER allow you
* to download, install and use up to three copies of the PRODUCT to
* perform integration tests, confirm the quality of the PRODUCT and
* its suitability. The testing period should be limited to fourteen
* days. Tests should be performed under the conditions of test
* environments. The purpose of the tests must not be to generate profit.
* 2. Provided that you purchased a license from "INFIMA" online store
* (store address: https://mathparser.org/order-commercial-license or
* https://payhip.com/infima), and you comply with all below terms and
* conditions, and you have acknowledged and understood the following
* DISCLAIMER, AUTHOR & PUBLISHER grant you a nonexclusive license
* including the following rights:
* 3. The license has been granted only to you, i.e., the person or entity
* that made the purchase, who is identified and confirmed by the data
* provided during the purchase.
* 4. In case you purchased a license in the "ONE-TIME PURCHASE" model,
* the license has been granted only for the PRODUCT version specified
* in the purchase. The upgrade policy gives you additional rights and
* is described in the dedicated section below.
* 5. In case you purchased a license in the "SUBSCRIPTION" model, you can
* install and use any version of the PRODUCT, but only during the
* subscription validity period.
* 6. In case you purchased a "SINGLE LICENSE" you can install and use the
* PRODUCT from one workstation.
* 7. Additional copies of the PRODUCT can be installed and used from more
* than one workstation; however, this number is limited to the number
* of workstations purchased as per order.
* 8. In case you purchased a "SITE LICENSE ", the PRODUCT can be installed
* and used from all workstations located at your premises.
* 9. You may incorporate the unmodified PRODUCT into your own products
* and software.
* 10. If you purchased a license with the "SOURCE CODE" option, you may
* modify the PRODUCT's source code and incorporate the modified source
* code into your own products and/or software.
* 11. Provided that the license validity period has not expired, you may
* distribute your product and/or software with the incorporated
* PRODUCT royalty-free.
* 12. You may make copies of the PRODUCT for backup and archival purposes.
* 13. AUTHOR & PUBLISHER reserve all rights not expressly granted to you
* in this agreement.
*
* ADDITIONAL CLARIFICATION ON WORKSTATION
*
* A workstation is a device, a remote device, or a virtual device, used by
* you, your employees, or other entities to whom you have commissioned the
* tasks. For example, the number of workstations may refer to the number
* of software developers, engineers, architects, scientists, and other
* professionals who use the PRODUCT on your behalf. The number of
* workstations is not the number of copies of your end-product that you
* distribute to your end-users.
*
* By purchasing the COMMERCIAL LICENSE, you only pay for the number of
* workstations, while the number of copies of your final product
* (delivered to your end-users) is not limited.
*
* UPGRADE POLICY
*
* The PRODUCT is versioned according to the following convention:
*
* [MAJOR].[MINOR].[PATCH]
*
* 1. COMMERCIAL LICENSE holders can install and use the updated version
* for bug fixes free of charge, i.e. if you have purchased a license
* for the [MAJOR].[MINOR] version (e.g.: 5.0), you can freely install
* all the various releases specified in the [PATCH] version (e.g.: 5.0.2).
* The license terms remain unchanged after the update.
* 2. COMMERCIAL LICENSE holders for [MAJOR].[MINOR] version (e.g.: 5.0)
* can install and use the updated version [MAJOR].[MINOR + 1] free of
* charge, i.e., plus one release in the [MINOR] range (e.g.: 5.1). The
* license terms remain unchanged after the update.
* 3. COMMERCIAL LICENSE holders who wish to upgrade their version, but are
* not eligible for the free upgrade, can claim a discount when
* purchasing the upgrade. For this purpose, please contact us via e-mail.
*
* DISCLAIMER
*
* THIS PRODUCT IS PROVIDED BY AUTHOR & PUBLISHER "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL AUTHOR OR PUBLISHER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS PRODUCT, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* THE VIEWS AND CONCLUSIONS CONTAINED IN THE PRODUCT AND DOCUMENTATION ARE
* THOSE OF THE AUTHORS AND SHOULD NOT BE INTERPRETED AS REPRESENTING
* OFFICIAL POLICIES, EITHER EXPRESSED OR IMPLIED, OF AUTHOR OR PUBLISHER.
*
* CONTACT
*
* - e-mail: [email protected]
* - website: https://mathparser.org
* - source code: https://github.com/mariuszgromada/MathParser.org-mXparser
* - online store: https://mathparser.org/order-commercial-license
* - online store: https://payhip.com/infima
*/
package org.mariuszgromada.math.mxparser.parsertokens;
import org.mariuszgromada.math.mxparser.mXparser;
/**
* Random variables - mXparser tokens definition.
*
* @author Mariusz Gromada
* [email protected]
* MathSpace.pl
* MathParser.org - mXparser project page
* mXparser on GitHub
* mXparser on SourceForge
* mXparser on Bitbucket
* mXparser on CodePlex
* Janet Sudoku - project web page
* Janet Sudoku on GitHub
* Janet Sudoku on CodePlex
* Janet Sudoku on SourceForge
* Janet Sudoku on BitBucket
* Scalar Free
* Scalar Pro
* ScalarMath.org
*
* @version 4.1.0
*/
public final class RandomVariable {
/*
* RandomVariable - token type id.
*/
public static final int TYPE_ID = 10;
public static final String TYPE_DESC = "Random Variable";
/*
* RandomVariable - tokens id.
*/
public static final int UNIFORM_ID = 1;
public static final int INT_ID = 2;
public static final int INT1_ID = 3;
public static final int INT2_ID = 4;
public static final int INT3_ID = 5;
public static final int INT4_ID = 6;
public static final int INT5_ID = 7;
public static final int INT6_ID = 8;
public static final int INT7_ID = 9;
public static final int INT8_ID = 10;
public static final int INT9_ID = 11;
public static final int NAT0_ID = 12;
public static final int NAT0_1_ID = 13;
public static final int NAT0_2_ID = 14;
public static final int NAT0_3_ID = 15;
public static final int NAT0_4_ID = 16;
public static final int NAT0_5_ID = 17;
public static final int NAT0_6_ID = 18;
public static final int NAT0_7_ID = 19;
public static final int NAT0_8_ID = 20;
public static final int NAT0_9_ID = 21;
public static final int NAT1_ID = 22;
public static final int NAT1_1_ID = 23;
public static final int NAT1_2_ID = 24;
public static final int NAT1_3_ID = 25;
public static final int NAT1_4_ID = 26;
public static final int NAT1_5_ID = 27;
public static final int NAT1_6_ID = 28;
public static final int NAT1_7_ID = 29;
public static final int NAT1_8_ID = 30;
public static final int NAT1_9_ID = 31;
public static final int NOR_ID = 32;
/*
* RandomVariable - tokens key words.
*/
public static final String UNIFORM_STR = "[Uni]";
public static final String INT_STR = "[Int]";
public static final String INT1_STR = "[Int1]";
public static final String INT2_STR = "[Int2]";
public static final String INT3_STR = "[Int3]";
public static final String INT4_STR = "[Int4]";
public static final String INT5_STR = "[Int5]";
public static final String INT6_STR = "[Int6]";
public static final String INT7_STR = "[Int7]";
public static final String INT8_STR = "[Int8]";
public static final String INT9_STR = "[Int9]";
public static final String NAT0_STR = "[nat]";
public static final String NAT0_1_STR = "[nat1]";
public static final String NAT0_2_STR = "[nat2]";
public static final String NAT0_3_STR = "[nat3]";
public static final String NAT0_4_STR = "[nat4]";
public static final String NAT0_5_STR = "[nat5]";
public static final String NAT0_6_STR = "[nat6]";
public static final String NAT0_7_STR = "[nat7]";
public static final String NAT0_8_STR = "[nat8]";
public static final String NAT0_9_STR = "[nat9]";
public static final String NAT1_STR = "[Nat]";
public static final String NAT1_1_STR = "[Nat1]";
public static final String NAT1_2_STR = "[Nat2]";
public static final String NAT1_3_STR = "[Nat3]";
public static final String NAT1_4_STR = "[Nat4]";
public static final String NAT1_5_STR = "[Nat5]";
public static final String NAT1_6_STR = "[Nat6]";
public static final String NAT1_7_STR = "[Nat7]";
public static final String NAT1_8_STR = "[Nat8]";
public static final String NAT1_9_STR = "[Nat9]";
public static final String NOR_STR = "[Nor]";
/*
* RandomVariable - syntax.
*/
public static final String UNIFORM_SYN = UNIFORM_STR;
public static final String INT_SYN = INT_STR;
public static final String INT1_SYN = INT1_STR;
public static final String INT2_SYN = INT2_STR;
public static final String INT3_SYN = INT3_STR;
public static final String INT4_SYN = INT4_STR;
public static final String INT5_SYN = INT5_STR;
public static final String INT6_SYN = INT6_STR;
public static final String INT7_SYN = INT7_STR;
public static final String INT8_SYN = INT8_STR;
public static final String INT9_SYN = INT9_STR;
public static final String NAT0_SYN = NAT0_STR;
public static final String NAT0_1_SYN = NAT0_1_STR;
public static final String NAT0_2_SYN = NAT0_2_STR;
public static final String NAT0_3_SYN = NAT0_3_STR;
public static final String NAT0_4_SYN = NAT0_4_STR;
public static final String NAT0_5_SYN = NAT0_5_STR;
public static final String NAT0_6_SYN = NAT0_6_STR;
public static final String NAT0_7_SYN = NAT0_7_STR;
public static final String NAT0_8_SYN = NAT0_8_STR;
public static final String NAT0_9_SYN = NAT0_9_STR;
public static final String NAT1_SYN = NAT1_STR;
public static final String NAT1_1_SYN = NAT1_1_STR;
public static final String NAT1_2_SYN = NAT1_2_STR;
public static final String NAT1_3_SYN = NAT1_3_STR;
public static final String NAT1_4_SYN = NAT1_4_STR;
public static final String NAT1_5_SYN = NAT1_5_STR;
public static final String NAT1_6_SYN = NAT1_6_STR;
public static final String NAT1_7_SYN = NAT1_7_STR;
public static final String NAT1_8_SYN = NAT1_8_STR;
public static final String NAT1_9_SYN = NAT1_9_STR;
public static final String NOR_SYN = NOR_STR;
/*
* RandomVariable - tokens description.
*/
public static final String UNIFORM_DESC = "Random variable - Uniform continuous distribution U(0,1)";
public static final String INT_DESC = "Random variable - random integer";
public static final String INT1_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^1, 10^1}";
public static final String INT2_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^2, 10^2}";
public static final String INT3_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^3, 10^3}";
public static final String INT4_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^4, 10^4}";
public static final String INT5_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^5, 10^5}";
public static final String INT6_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^6, 10^6}";
public static final String INT7_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^7, 10^7}";
public static final String INT8_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^8, 10^8}";
public static final String INT9_DESC = "Random variable - random integer - Uniform discrete distribution U{-10^9, 10^9}";
public static final String NAT0_DESC = "Random variable - random natural number including 0";
public static final String NAT0_1_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^1}";
public static final String NAT0_2_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^2}";
public static final String NAT0_3_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^3}";
public static final String NAT0_4_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^4}";
public static final String NAT0_5_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^5}";
public static final String NAT0_6_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^6}";
public static final String NAT0_7_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^7}";
public static final String NAT0_8_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^8}";
public static final String NAT0_9_DESC = "Random variable - random natural number including 0 - Uniform discrete distribution U{0, 10^9}";
public static final String NAT1_DESC = "Random variable - random natural number";
public static final String NAT1_1_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^1}";
public static final String NAT1_2_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^2}";
public static final String NAT1_3_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^3}";
public static final String NAT1_4_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^4}";
public static final String NAT1_5_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^5}";
public static final String NAT1_6_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^6}";
public static final String NAT1_7_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^7}";
public static final String NAT1_8_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^8}";
public static final String NAT1_9_DESC = "Random variable - random natural number - Uniform discrete distribution U{1, 10^9}";
public static final String NOR_DESC = "Random variable - Normal distribution N(0,1)";
/*
* RandomVariable - since.
*/
public static final String UNIFORM_SINCE = mXparser.NAMEv30;
public static final String INT_SINCE = mXparser.NAMEv30;
public static final String INT1_SINCE = mXparser.NAMEv30;
public static final String INT2_SINCE = mXparser.NAMEv30;
public static final String INT3_SINCE = mXparser.NAMEv30;
public static final String INT4_SINCE = mXparser.NAMEv30;
public static final String INT5_SINCE = mXparser.NAMEv30;
public static final String INT6_SINCE = mXparser.NAMEv30;
public static final String INT7_SINCE = mXparser.NAMEv30;
public static final String INT8_SINCE = mXparser.NAMEv30;
public static final String INT9_SINCE = mXparser.NAMEv30;
public static final String NAT0_SINCE = mXparser.NAMEv30;
public static final String NAT0_1_SINCE = mXparser.NAMEv30;
public static final String NAT0_2_SINCE = mXparser.NAMEv30;
public static final String NAT0_3_SINCE = mXparser.NAMEv30;
public static final String NAT0_4_SINCE = mXparser.NAMEv30;
public static final String NAT0_5_SINCE = mXparser.NAMEv30;
public static final String NAT0_6_SINCE = mXparser.NAMEv30;
public static final String NAT0_7_SINCE = mXparser.NAMEv30;
public static final String NAT0_8_SINCE = mXparser.NAMEv30;
public static final String NAT0_9_SINCE = mXparser.NAMEv30;
public static final String NAT1_SINCE = mXparser.NAMEv30;
public static final String NAT1_1_SINCE = mXparser.NAMEv30;
public static final String NAT1_2_SINCE = mXparser.NAMEv30;
public static final String NAT1_3_SINCE = mXparser.NAMEv30;
public static final String NAT1_4_SINCE = mXparser.NAMEv30;
public static final String NAT1_5_SINCE = mXparser.NAMEv30;
public static final String NAT1_6_SINCE = mXparser.NAMEv30;
public static final String NAT1_7_SINCE = mXparser.NAMEv30;
public static final String NAT1_8_SINCE = mXparser.NAMEv30;
public static final String NAT1_9_SINCE = mXparser.NAMEv30;
public static final String NOR_SINCE = mXparser.NAMEv30;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy