private void displaySimple(PrintStream output){
  output.println("First-Order Effects");
  for (int j=0; j < P; j++) {
    double[] a0=new double[N];
    double[] a1=new double[N];
    double[] a2=new double[N];
    for (int i=0; i < N; i++) {
      a0[i]=A[i];
      a1[i]=C_A[i][j];
      a2[i]=B[i];
    }
    double value=computeFirstOrder(a0,a1,a2,N);
    output.print(value < 0 ? 0.0 : value);
    if (j < P - 1) {
      output.print('\t');
    }
  }
  output.println();
  output.println("Total-Order Effects");
  for (int j=0; j < P; j++) {
    double[] a0=new double[N];
    double[] a1=new double[N];
    double[] a2=new double[N];
    for (int i=0; i < N; i++) {
      a0[i]=A[i];
      a1[i]=C_A[i][j];
      a2[i]=B[i];
    }
    double value=computeTotalOrder(a0,a1,a2,N);
    output.print(value < 0 ? 0.0 : value);
    if (j < P - 1) {
      output.print('\t');
    }
  }
  output.println();
}

private void displaySimple ( PrintStream output ) { output . println ( "First-Order Effects" ) ; for ( int j = 0 ; j < P ; j ++ ) { double [ ] a0 = new double [ N ] ; double [ ] a1 = new double [ N ] ; double [ ] a2 = new double [ N ] ; for ( int i = 0 ; i < N ; i ++ ) { a0 [ i ] = A [ i ] ; a1 [ i ] = C_A [ i ] [ j ] ; a2 [ i ] = B [ i ] ; } double value = computeFirstOrder ( a0 , a1 , a2 , N ) ; output . print ( value < 0 ? 0.0 : value ) ; if ( j < P - 1 ) { output . print ( '\t' ) ; } } output . println ( ) ; output . println ( "Total-Order Effects" ) ; for ( int j = 0 ; j < P ; j ++ ) { double [ ] a0 = new double [ N ] ; double [ ] a1 = new double [ N ] ; double [ ] a2 = new double [ N ] ; for ( int i = 0 ; i < N ; i ++ ) { a0 [ i ] = A [ i ] ; a1 [ i ] = C_A [ i ] [ j ] ; a2 [ i ] = B [ i ] ; } double value = computeTotalOrder ( a0 , a1 , a2 , N ) ; output . print ( value < 0 ? 0.0 : value ) ; if ( j < P - 1 ) { output . print ( '\t' ) ; } } output . println ( ) ; }
computes and displays the first - and total - order sobol ' sensitivites and 50 % bootstrap confidence intervals .
