Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

riso.distributions
Class Square  view Square download Square.java

java.lang.Object
  extended byriso.distributions.AbstractConditionalDistribution
      extended byriso.distributions.FunctionalRelation
          extended byriso.distributions.Square
All Implemented Interfaces:
ConditionalDistribution, java.io.Serializable

public class Square
extends FunctionalRelation


Field Summary
 
Fields inherited from class riso.distributions.FunctionalRelation
NGRID
 
Fields inherited from class riso.distributions.AbstractConditionalDistribution
associated_variable
 
Constructor Summary
Square()
          Do-nothing constructor.
 
Method Summary
 double[] dFdx(double[] x)
          Returns the derivative of the square function.
 double F(double[] x)
          Returns the square of the argument.
 java.lang.String format_string(java.lang.String leading_ws)
          Creates a description of this distribution as a string.
 int ndimensions_parent()
          Returns the number of dimensions of the parent variables, which is always 1.
 
Methods inherited from class riso.distributions.FunctionalRelation
clone, component_roots, get_density, ndimensions_child, p, random
 
Methods inherited from class riso.distributions.AbstractConditionalDistribution
get_nstates, parse_string, pretty_input, pretty_output, set_variable, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Square

public Square()
Do-nothing constructor.

Method Detail

ndimensions_parent

public int ndimensions_parent()
Returns the number of dimensions of the parent variables, which is always 1.


F

public double F(double[] x)
Returns the square of the argument.

Specified by:
F in class FunctionalRelation

dFdx

public double[] dFdx(double[] x)
Returns the derivative of the square function.

Specified by:
dFdx in class FunctionalRelation

format_string

public java.lang.String format_string(java.lang.String leading_ws)
                               throws java.io.IOException
Creates a description of this distribution as a string.

Specified by:
format_string in interface ConditionalDistribution
Overrides:
format_string in class FunctionalRelation