vsp
Class Params

java.lang.Object
  extended by vsp.Params

public class Params
extends java.lang.Object

Parametrs from command line and basic operations with them

Author:
Jan Tichava

Field Summary
private  double a
           
private  double b
           
private  double c
           
private  int count
           
private  double start
           
 
Constructor Summary
Params(int count, double a, double b, double c)
          Create new parameters
 
Method Summary
 double getA()
          Get first break
 double getB()
          Get second break
 double getC()
          Get last break
 int getCount()
          Get count of generated numbers
 double getDeviation()
          Count theoretic deviation
 double getMedian()
          Count theoretic median
 double getStart()
          Get start break
private  void validate()
          Validate parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

private int count

a

private double a

b

private double b

c

private double c

start

private double start
Constructor Detail

Params

public Params(int count,
              double a,
              double b,
              double c)
       throws java.lang.Exception
Create new parameters

Parameters:
count - count of generated numbers
a - first break
b - second break
c - last break
Throws:
java.lang.Exception
Method Detail

validate

private void validate()
               throws java.lang.Exception
Validate parameters

Throws:
java.lang.Exception

getMedian

public double getMedian()
Count theoretic median

Returns:
median

getDeviation

public double getDeviation()
                    throws java.lang.Exception
Count theoretic deviation

Returns:
deviation
Throws:
java.lang.Exception

getCount

public int getCount()
Get count of generated numbers

Returns:
the count

getA

public double getA()
Get first break

Returns:
the a

getB

public double getB()
Get second break

Returns:
the b

getC

public double getC()
Get last break

Returns:
the c

getStart

public double getStart()
Get start break

Returns:
the start