Bulletin17Tables.java [src/java/m/cfa/flood] Revision: default  Date:
package m.cfa.flood;

/**
* This class contains tables referenced from the Bulletin 17B document used by 
* the B17 flood analysis method
* Last Updated: 13-September-2016
* @author Tyler Wible
* @since Java version: 2-November-2012
*/
public class Bulletin17Tables {
    //One-sided 10-percent significance level Kn values for anormal distribution
    public static double[][] KNtable = {
        {10,2.036},
        {11,2.088},
        {12,2.134},
        {13,2.175},
        {14,2.213},
        {15,2.247},
        {16,2.279},
        {17,2.309},
        {18,2.335},
        {19,2.361},
        {20,2.385},
        {21,2.408},
        {22,2.429},
        {23,2.448},
        {24,2.467},
        {25,2.486},
        {26,2.502},
        {27,2.519},
        {28,2.534},
        {29,2.549},
        {30,2.563},
        {31,2.577},
        {32,2.591},
        {33,2.604},
        {34,2.616},
        {35,2.628},
        {36,2.639},
        {37,2.65},
        {38,2.661},
        {39,2.671},
        {40,2.682},
        {41,2.692},
        {42,2.7},
        {43,2.71},
        {44,2.719},
        {45,2.727},
        {46,2.736},
        {47,2.744},
        {48,2.753},
        {49,2.76},
        {50,2.768},
        {51,2.775},
        {52,2.783},
        {53,2.79},
        {54,2.798},
        {55,2.804},
        {56,2.811},
        {57,2.818},
        {58,2.824},
        {59,2.831},
        {60,2.837},
        {61,2.842},
        {62,2.849},
        {63,2.854},
        {64,2.86},
        {65,2.866},
        {66,2.871},
        {67,2.877},
        {68,2.883},
        {69,2.888},
        {70,2.893},
        {71,2.897},
        {72,2.903},
        {73,2.908},
        {74,2.912},
        {75,2.917},
        {76,2.922},
        {77,2.927},
        {78,2.931},
        {79,2.935},
        {80,2.94},
        {81,2.945},
        {82,2.949},
        {83,2.953},
        {84,2.957},
        {85,2.961},
        {86,2.966},
        {87,2.97},
        {88,2.973},
        {89,2.977},
        {90,2.981},
        {91,2.984},
        {92,2.989},
        {93,2.993},
        {94,2.996},
        {95,3},
        {96,3.003},
        {97,3.006},
        {98,3.011},
        {99,3.014},
        {100,3.017},
        {101,3.021},
        {102,3.024},
        {103,3.027},
        {104,3.03},
        {105,3.033},
        {106,3.037},
        {107,3.04},
        {108,3.043},
        {109,3.046},
        {110,3.049},
        {111,3.052},
        {112,3.055},
        {113,3.058},
        {114,3.061},
        {115,3.064},
        {116,3.067},
        {117,3.07},
        {118,3.073},
        {119,3.075},
        {120,3.078},
        {121,3.081},
        {122,3.083},
        {123,3.086},
        {124,3.089},
        {125,3.092},
        {126,3.095},
        {127,3.097},
        {128,3.1},
        {129,3.102},
        {130,3.104},
        {131,3.107},
        {132,3.109},
        {133,3.112},
        {134,3.114},
        {135,3.116},
        {136,3.119},
        {137,3.122},
        {138,3.124},
        {139,3.126},
        {140,3.129},
        {141,3.131},
        {142,3.133},
        {143,3.135},
        {144,3.138},
        {145,3.14},
        {146,3.142},
        {147,3.144},
        {148,3.146},
        {149,3.148}};
    public static double[][] ktable(){
        double[] column1 = Bulletin17ktable1.column1;
        double[] column2 = Bulletin17ktable2.column2;
        double[] column3 = Bulletin17ktable3.column3;
        
        double[][] ktable = new double[column1.length][3];
        for(int i=0; i<column1.length; i++){
            ktable[i][0] = column1[i];
            ktable[i][1] = column2[i];
            ktable[i][2] = column3[i];
            
        }
        
        return ktable;
    }
    public static double[] pscale = {0.005,
        0.01,
        0.02,
        0.05,
        0.1,
        0.2,
        0.5,
        0.8,
        0.9,
        0.95,
        0.99,
        0.999,
        0.002, //500 year flood
        0.001,
        0.6667, //1.5 year flood
        0.3333};
    public static double[][] PNtable = {{1,0.9999,0.898},
        {1,0.999,0.879},
        {1,0.99,0.846},
        {1,0.95,0.796},
        {1,0.9,0.757},
        {1,0.7,0.628},
        {1,0.5,0.5},
        {1,0.3,0.372},
        {1,0.1,0.243},
        {1,0.05,0.204},
        {1,0.01,0.154},
        {1,0.001,0.121},
        {1,0.0001,0.102},
        {2,0.9999,0.957},
        {2,0.999,0.943},
        {2,0.99,0.91},
        {2,0.95,0.854},
        {2,0.9,0.807},
        {2,0.7,0.653},
        {2,0.5,0.5},
        {2,0.3,0.347},
        {2,0.1,0.193},
        {2,0.05,0.146},
        {2,0.01,0.09},
        {2,0.001,0.057},
        {2,0.0001,0.043},
        {3,0.9999,0.977},
        {3,0.999,0.965},
        {3,0.99,0.936},
        {3,0.95,0.881},
        {3,0.9,0.831},
        {3,0.7,0.664},
        {3,0.5,0.5},
        {3,0.3,0.336},
        {3,0.1,0.169},
        {3,0.05,0.119},
        {3,0.01,0.064},
        {3,0.001,0.035},
        {3,0.0001,0.023},
        {4,0.9999,0.9863},
        {4,0.999,0.976},
        {4,0.99,0.95},
        {4,0.95,0.896},
        {4,0.9,0.846},
        {4,0.7,0.67},
        {4,0.5,0.5},
        {4,0.3,0.33},
        {4,0.1,0.154},
        {4,0.05,0.104},
        {4,0.01,0.05},
        {4,0.001,0.024},
        {4,0.0001,0.0137},
        {5,0.9999,0.9908},
        {5,0.999,0.9821},
        {5,0.99,0.958},
        {5,0.95,0.906},
        {5,0.9,0.854},
        {5,0.7,0.675},
        {5,0.5,0.5},
        {5,0.3,0.325},
        {5,0.1,0.146},
        {5,0.05,0.094},
        {5,0.01,0.042},
        {5,0.001,0.0179},
        {5,0.0001,0.0092},
        {6,0.9999,0.9934},
        {6,0.999,0.9862},
        {6,0.99,0.964},
        {6,0.95,0.912},
        {6,0.9,0.862},
        {6,0.7,0.678},
        {6,0.5,0.5},
        {6,0.3,0.322},
        {6,0.1,0.138},
        {6,0.05,0.088},
        {6,0.01,0.036},
        {6,0.001,0.0138},
        {6,0.0001,0.0066},
        {7,0.9999,0.995},
        {7,0.999,0.9887},
        {7,0.99,0.968},
        {7,0.95,0.917},
        {7,0.9,0.865},
        {7,0.7,0.681},
        {7,0.5,0.5},
        {7,0.3,0.319},
        {7,0.1,0.135},
        {7,0.05,0.083},
        {7,0.01,0.032},
        {7,0.001,0.0113},
        {7,0.0001,0.005},
        {8,0.9999,0.9961},
        {8,0.999,0.9906},
        {8,0.99,0.971},
        {8,0.95,0.921},
        {8,0.9,0.869},
        {8,0.7,0.683},
        {8,0.5,0.5},
        {8,0.3,0.317},
        {8,0.1,0.131},
        {8,0.05,0.079},
        {8,0.01,0.029},
        {8,0.001,0.0094},
        {8,0.0001,0.0039},
        {9,0.9999,0.9969},
        {9,0.999,0.9918},
        {9,0.99,0.973},
        {9,0.95,0.924},
        {9,0.9,0.873},
        {9,0.7,0.684},
        {9,0.5,0.5},
        {9,0.3,0.316},
        {9,0.1,0.127},
        {9,0.05,0.076},
        {9,0.01,0.027},
        {9,0.001,0.0082},
        {9,0.0001,0.0031},
        {10,0.9999,0.9975},
        {10,0.999,0.9928},
        {10,0.99,0.975},
        {10,0.95,0.927},
        {10,0.9,0.875},
        {10,0.7,0.685},
        {10,0.5,0.5},
        {10,0.3,0.315},
        {10,0.1,0.125},
        {10,0.05,0.073},
        {10,0.01,0.025},
        {10,0.001,0.0072},
        {10,0.0001,0.0025},
        {11,0.9999,0.9979},
        {11,0.999,0.9936},
        {11,0.99,0.977},
        {11,0.95,0.929},
        {11,0.9,0.877},
        {11,0.7,0.686},
        {11,0.5,0.5},
        {11,0.3,0.314},
        {11,0.1,0.123},
        {11,0.05,0.071},
        {11,0.01,0.023},
        {11,0.001,0.0064},
        {11,0.0001,0.0021},
        {12,0.9999,0.9982},
        {12,0.999,0.9942},
        {12,0.99,0.978},
        {12,0.95,0.931},
        {12,0.9,0.879},
        {12,0.7,0.687},
        {12,0.5,0.5},
        {12,0.3,0.313},
        {12,0.1,0.121},
        {12,0.05,0.069},
        {12,0.01,0.022},
        {12,0.001,0.0058},
        {12,0.0001,0.0018},
        {13,0.9999,0.9984},
        {13,0.999,0.9948},
        {13,0.99,0.979},
        {13,0.95,0.932},
        {13,0.9,0.881},
        {13,0.7,0.688},
        {13,0.5,0.5},
        {13,0.3,0.312},
        {13,0.1,0.119},
        {13,0.05,0.068},
        {13,0.01,0.021},
        {13,0.001,0.0052},
        {13,0.0001,0.0016},
        {14,0.9999,0.9986},
        {14,0.999,0.9952},
        {14,0.99,0.98},
        {14,0.95,0.933},
        {14,0.9,0.882},
        {14,0.7,0.689},
        {14,0.5,0.5},
        {14,0.3,0.311},
        {14,0.1,0.118},
        {14,0.05,0.067},
        {14,0.01,0.02},
        {14,0.001,0.0048},
        {14,0.0001,0.0014},
        {15,0.9999,0.9987},
        {15,0.999,0.9955},
        {15,0.99,0.9804},
        {15,0.95,0.934},
        {15,0.9,0.883},
        {15,0.7,0.689},
        {15,0.5,0.5},
        {15,0.3,0.311},
        {15,0.1,0.117},
        {15,0.05,0.066},
        {15,0.01,0.0196},
        {15,0.001,0.0045},
        {15,0.0001,0.0013},
        {16,0.9999,0.9988},
        {16,0.999,0.9958},
        {16,0.99,0.981},
        {16,0.95,0.935},
        {16,0.9,0.884},
        {16,0.7,0.69},
        {16,0.5,0.5},
        {16,0.3,0.31},
        {16,0.1,0.116},
        {16,0.05,0.065},
        {16,0.01,0.019},
        {16,0.001,0.0042},
        {16,0.0001,0.0012},
        {17,0.9999,0.9989},
        {17,0.999,0.996},
        {17,0.99,0.9816},
        {17,0.95,0.936},
        {17,0.9,0.885},
        {17,0.7,0.69},
        {17,0.5,0.5},
        {17,0.3,0.31},
        {17,0.1,0.115},
        {17,0.05,0.064},
        {17,0.01,0.0184},
        {17,0.001,0.004},
        {17,0.0001,0.0011},
        {18,0.9999,0.999},
        {18,0.999,0.9962},
        {18,0.99,0.9821},
        {18,0.95,0.937},
        {18,0.9,0.886},
        {18,0.7,0.691},
        {18,0.5,0.5},
        {18,0.3,0.309},
        {18,0.1,0.114},
        {18,0.05,0.063},
        {18,0.01,0.0179},
        {18,0.001,0.0038},
        {18,0.0001,0.001},
        {19,0.9999,0.99909},
        {19,0.999,0.9964},
        {19,0.99,0.9826},
        {19,0.95,0.938},
        {19,0.9,0.887},
        {19,0.7,0.691},
        {19,0.5,0.5},
        {19,0.3,0.309},
        {19,0.1,0.113},
        {19,0.05,0.062},
        {19,0.01,0.0174},
        {19,0.001,0.0036},
        {19,0.0001,0.00091},
        {20,0.9999,0.99916},
        {20,0.999,0.9966},
        {20,0.99,0.983},
        {20,0.95,0.938},
        {20,0.9,0.887},
        {20,0.7,0.692},
        {20,0.5,0.5},
        {20,0.3,0.308},
        {20,0.1,0.113},
        {20,0.05,0.062},
        {20,0.01,0.017},
        {20,0.001,0.0034},
        {20,0.0001,0.00084},
        {21,0.9999,0.99922},
        {21,0.999,0.9967},
        {21,0.99,0.9833},
        {21,0.95,0.939},
        {21,0.9,0.888},
        {21,0.7,0.692},
        {21,0.5,0.5},
        {21,0.3,0.308},
        {21,0.1,0.112},
        {21,0.05,0.061},
        {21,0.01,0.0167},
        {21,0.001,0.0033},
        {21,0.0001,0.00078},
        {22,0.9999,0.99927},
        {22,0.999,0.9969},
        {22,0.99,0.9837},
        {22,0.95,0.939},
        {22,0.9,0.889},
        {22,0.7,0.692},
        {22,0.5,0.5},
        {22,0.3,0.308},
        {22,0.1,0.111},
        {22,0.05,0.061},
        {22,0.01,0.0163},
        {22,0.001,0.0031},
        {22,0.0001,0.00073},
        {23,0.9999,0.99932},
        {23,0.999,0.997},
        {23,0.99,0.9839},
        {23,0.95,0.94},
        {23,0.9,0.889},
        {23,0.7,0.693},
        {23,0.5,0.5},
        {23,0.3,0.307},
        {23,0.1,0.111},
        {23,0.05,0.06},
        {23,0.01,0.0161},
        {23,0.001,0.003},
        {23,0.0001,0.00068},
        {24,0.9999,0.99936},
        {24,0.999,0.9971},
        {24,0.99,0.9842},
        {24,0.95,0.94},
        {24,0.9,0.89},
        {24,0.7,0.693},
        {24,0.5,0.5},
        {24,0.3,0.307},
        {24,0.1,0.11},
        {24,0.05,0.06},
        {24,0.01,0.0158},
        {24,0.001,0.0029},
        {24,0.0001,0.00064},
        {25,0.9999,0.9994},
        {25,0.999,0.9972},
        {25,0.99,0.9845},
        {25,0.95,0.941},
        {25,0.9,0.89},
        {25,0.7,0.693},
        {25,0.5,0.5},
        {25,0.3,0.307},
        {25,0.1,0.11},
        {25,0.05,0.059},
        {25,0.01,0.0155},
        {25,0.001,0.0028},
        {25,0.0001,0.0006},
        {26,0.9999,0.99943},
        {26,0.999,0.9973},
        {26,0.99,0.9847},
        {26,0.95,0.941},
        {26,0.9,0.891},
        {26,0.7,0.694},
        {26,0.5,0.5},
        {26,0.3,0.306},
        {26,0.1,0.109},
        {26,0.05,0.059},
        {26,0.01,0.0153},
        {26,0.001,0.0027},
        {26,0.0001,0.00057},
        {27,0.9999,0.99946},
        {27,0.999,0.9974},
        {27,0.99,0.9849},
        {27,0.95,0.941},
        {27,0.9,0.891},
        {27,0.7,0.694},
        {27,0.5,0.5},
        {27,0.3,0.306},
        {27,0.1,0.109},
        {27,0.05,0.059},
        {27,0.01,0.0151},
        {27,0.001,0.0026},
        {27,0.0001,0.00054},
        {28,0.9999,0.99949},
        {28,0.999,0.9974},
        {28,0.99,0.9851},
        {28,0.95,0.942},
        {28,0.9,0.891},
        {28,0.7,0.694},
        {28,0.5,0.5},
        {28,0.3,0.306},
        {28,0.1,0.109},
        {28,0.05,0.058},
        {28,0.01,0.0149},
        {28,0.001,0.0026},
        {28,0.0001,0.00051},
        {29,0.9999,0.99951},
        {29,0.999,0.9975},
        {29,0.99,0.9853},
        {29,0.95,0.942},
        {29,0.9,0.892},
        {29,0.7,0.694},
        {29,0.5,0.5},
        {29,0.3,0.306},
        {29,0.1,0.108},
        {29,0.05,0.058},
        {29,0.01,0.0147},
        {29,0.001,0.0025},
        {29,0.0001,0.00049},
        {30,0.9999,0.99954},
        {30,0.999,0.9976},
        {30,0.99,0.9855},
        {30,0.95,0.942},
        {30,0.9,0.892},
        {30,0.7,0.694},
        {30,0.5,0.5},
        {30,0.3,0.306},
        {30,0.1,0.108},
        {30,0.05,0.058},
        {30,0.01,0.0145},
        {30,0.001,0.0024},
        {30,0.0001,0.00046},
        {40,0.9999,0.99966},
        {40,0.999,0.998},
        {40,0.99,0.9867},
        {40,0.95,0.944},
        {40,0.9,0.894},
        {40,0.7,0.696},
        {40,0.5,0.5},
        {40,0.3,0.304},
        {40,0.1,0.106},
        {40,0.05,0.056},
        {40,0.01,0.0133},
        {40,0.001,0.002},
        {40,0.0001,0.00034},
        {60,0.9999,0.99975},
        {60,0.999,0.9984},
        {60,0.99,0.9878},
        {60,0.95,0.946},
        {60,0.9,0.896},
        {60,0.7,0.697},
        {60,0.5,0.5},
        {60,0.3,0.303},
        {60,0.1,0.104},
        {60,0.05,0.054},
        {60,0.01,0.0122},
        {60,0.001,0.0016},
        {60,0.0001,0.00025},
        {120,0.9999,0.99983},
        {120,0.999,0.9987},
        {120,0.99,0.9889},
        {120,0.95,0.948},
        {120,0.9,0.898},
        {120,0.7,0.698},
        {120,0.5,0.5},
        {120,0.3,0.302},
        {120,0.1,0.102},
        {120,0.05,0.052},
        {120,0.01,0.0111},
        {120,0.001,0.0013},
        {120,0.0001,0.00017},
        {999,0.9999,0.9999},
        {999,0.999,0.999},
        {999,0.99,0.99},
        {999,0.95,0.95},
        {999,0.9,0.9},
        {999,0.7,0.7},
        {999,0.5,0.5},
        {999,0.3,0.3},
        {999,0.1,0.1},
        {999,0.05,0.05},
        {999,0.01,0.01},
        {999,0.001,0.001},
        {999,0.0001,0.0001}};
}