RACIPELIB.c
// Generate random value for fold change parameter which need to be greater than or equal to 1
Generate random value for fold change parameter which need to be greater than or equal to 1
Generate random value for fold change parameter which need to be greater than or equal to 1
double randfd(double m, double stdvalue, int dist)
{
  double u = 0.0;
  switch (dist) {
    case 2:  
      do {
        u = randg(m, stdvalue);
      } while (u < 1);
      break;
    case 3:  
      do {
        u = randexp(m);
      } while (u < 1);
      break;
    }
    return u;
}
double randfd ( double m , double stdvalue , int dist ) { double u = 0.0 ; switch ( dist ) { case 2 : do { u = randg ( m , stdvalue ) ; } while ( u < 1 ) ; break ; case 3 : do { u = randexp ( m ) ; } while ( u < 1 ) ; break ; } return u ; }
Generate random value for fold change parameter which need to be greater than or equal to 1
Generate random value for fold change parameter which need to be greater than or equal to 1
// Guassian distribution // Exponential distribution