Class StudentTPar
java.lang.Object
random.AbstractParameter
random.StudentTPar
This is the parameter that should be passed to the StudentT
distribution.
Copyright (c) 2003
Politecnico di Milano - dipartimento di Elettronica e Informazione
Copyright (c) 2003
Politecnico di Milano - dipartimento di Elettronica e Informazione
- Author:
- Fabrizio Frontera - ffrontera@yahoo.it
-
Constructor Summary
ConstructorsConstructorDescriptionStudentTPar(double freedom) It creates a new student T parameter with the provided degrees of freedom.StudentTPar(Double wfreedom) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck()It verifies if the parameter is correct.doubleIt returns the degrees of freedom of the student T distribution.voidsetFreedom(double freedom) It allows the user to change the degrees of freedom of the student T distribution and verifies if it is an integer greater than zero.Methods inherited from class AbstractParameter
setMean
-
Constructor Details
-
StudentTPar
It creates a new student T parameter with the provided degrees of freedom.- Parameters:
freedom- double containing the degrees of freedom of the new student T distribution. It is defined as double but must be an integer greater than zero.- Throws:
IncorrectDistributionParameterException- if the degrees of freedom is not an integer greater than zero.
-
StudentTPar
-
-
Method Details
-
check
public boolean check()It verifies if the parameter is correct. For the student T distribution, the value of the degrees of freedom must be an integer greater than zero. -
getFreedom
public double getFreedom()It returns the degrees of freedom of the student T distribution.- Returns:
- double with the degrees of freedom of the student T distribution.
-
setFreedom
It allows the user to change the degrees of freedom of the student T distribution and verifies if it is an integer greater than zero.- Parameters:
freedom- double indicating the degrees of freedom.- Throws:
IncorrectDistributionParameterException- if the degrees of freedom is not an integer greater than zero.
-