Esempio n. 1
0
void GillespieProcess::initialize()
{
    Process::initialize();
    declareUnidirectional();

    calculateOrder();
}
Esempio n. 2
0
    virtual void initialize()
    {
        ContinuousProcess::initialize();

        calculateOrder();
        
        if( ! ( getOrder() == 1 || getOrder() == 2 ) )
        {
            THROW_EXCEPTION_INSIDE( ValueError, 
                                   asString() +
                                   ": either first or second order scheme is "
                                   "allowed" );
        }
    }    
void LinearChart::HackedCalculateBounds() {
  myMinBound = 0;
  myMaxBound = 10;
  if ( myMaxBound == myMinBound ) {
    ++myMaxBound;
    --myMinBound;
  }
  myOrder = calculateOrder( 10 );
  myTickSize = ( 10 ) / (myNbTicks - 1);
  if ( myOrder >= 10 ) {
    myNbDigits = 0;
  } else if ( myOrder == 1 ) {
    myNbDigits = 2;
  } else {
    int nbZero = QString::number(myOrder).count( "0" );
    myNbDigits = nbZero + 2;
  }
}