Example usage for java.text DecimalFormatSymbols setInfinity

List of usage examples for java.text DecimalFormatSymbols setInfinity

Introduction

In this page you can find the example usage for java.text DecimalFormatSymbols setInfinity.

Prototype

public void setInfinity(String infinity) 

Source Link

Document

Sets the string used to represent infinity.

Usage

From source file:GeMSE.GS.Analysis.Stats.TwoSamplePearsonsCorrelationPanel.java

public TwoSamplePearsonsCorrelationPanel() {
    initComponents();//from  www  .ja  v a 2  s .c o m

    _decFor = new DecimalFormat("#.#########");
    _decFor.setRoundingMode(RoundingMode.CEILING);
    DecimalFormatSymbols decFors = _decFor.getDecimalFormatSymbols();
    decFors.setNaN("NaN");
    decFors.setInfinity("");
    _decFor.setDecimalFormatSymbols(decFors);
}

From source file:GeMSE.GS.Analysis.Stats.TwoSampleCovariancePanel.java

public TwoSampleCovariancePanel() {
    initComponents();/*from  w  ww . j ava  2s.c  om*/

    _decFor = new DecimalFormat("#.#########");
    _decFor.setRoundingMode(RoundingMode.CEILING);
    DecimalFormatSymbols decFors = _decFor.getDecimalFormatSymbols();
    decFors.setNaN("NaN");
    decFors.setInfinity("");
    _decFor.setDecimalFormatSymbols(decFors);

    _biasCorrected = false;
    BiasCorrectedCB.setSelected(_biasCorrected);
}

From source file:GeMSE.GS.Analysis.Stats.OneSampleTTestPanel.java

public OneSampleTTestPanel() {
    initComponents();/*from   w  w w  .j ava 2  s  .  co m*/
    _sample = new double[0];
    _studentTest = new TTest();

    _decFor = new DecimalFormat("#.#########");
    _decFor.setRoundingMode(RoundingMode.CEILING);
    DecimalFormatSymbols decFors = _decFor.getDecimalFormatSymbols();
    decFors.setNaN("NaN");
    decFors.setInfinity("");
    _decFor.setDecimalFormatSymbols(decFors);
}

From source file:GeMSE.GS.Analysis.Stats.TwoSampleTTestPanel.java

public TwoSampleTTestPanel() {
    initComponents();//from  ww  w.j av a  2s . c om
    _sample1 = new double[0];
    _sample2 = new double[0];

    _decFor = new DecimalFormat("#.#########");
    _decFor.setRoundingMode(RoundingMode.CEILING);
    DecimalFormatSymbols decFors = _decFor.getDecimalFormatSymbols();
    decFors.setNaN("NaN");
    decFors.setInfinity("");
    _decFor.setDecimalFormatSymbols(decFors);

    _variance = new Variance();
    _studentTest = new TTest();
}