This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MinDistanceSolver { | |
| public static void main(String[] args) { | |
| double currentRowState, p = 2.555 * Math.pow(10, -3), q = 1 - p, pTransformation = Math.pow(10, -11); // Данные | |
| int dMinimum = 1, n = 31, k = 1; //Данные | |
| double pInhibition; // Данные | |
| System.out.println("-------------------------------------------------------"); //декоратор | |
| do { //расчет Д минимум | |
| System.out.print(dMinimum + " "); | |
| currentRowState = combinator(n, dMinimum) * Math.pow(p, dMinimum) * Math.pow(q, n - dMinimum) * (((dMinimum + 1) * q) / ((dMinimum + 1) - ((n + 1) * p))); | |
| System.out.println(currentRowState); |
NewerOlder