1 # {{{ description, examples, synopsis, see also
3 # No method, just documentation
20 # <a HREF="../data.html">data</a>, <a
21 # HREF="../model.html">model</a> <a
22 # HREF="../output.html">output</a>, <a
23 # HREF="../tool.html">tool</a>
29 # data, model, output, tool
37 start include statements
43 end include statements
51 $model = $this -> models
-> [0];
52 unless( defined $model -> datas
){
53 'debug' -> die ( message
=> "No data object in modelobject\n" );
60 # {{{ xv_step_pre_fork_setup
62 start xv_step_pre_fork_setup
65 if( scalar @
{$self -> {'subtools'}} > 1 ){
66 my @subtools = @
{$self -> {'subtools'}};
68 $subtools = \
@subtools;
71 my $xv_step = tool
::xv_step
-> new
( models
=> [$self -> {'models'} -> [0]],
72 subtools
=> $subtools,
73 %{$self -> {'subtool_arguments'} -> {'xv_step'}},
74 subtool_arguments
=> $self -> {'subtool_arguments'});
76 $xv_step -> create_data_sets
;
77 push( @
{$self -> {'xv_steps'}}, $xv_step );
79 end xv_step_pre_fork_setup
87 unless( $model_number == 1 ){
89 if( scalar @
{$self -> {'subtools'}} > 1 ){
90 my @subtools = @
{$self -> {'subtools'}};
92 $subtools = \
@subtools;
95 my $first_xv_step = $self -> {'xv_steps'} -> [0];
96 my $xv_step = tool
::xv_step
-> new
( models
=> [$self -> {'models'} -> [$model_number - 1]],
97 prediction_data
=> $first_xv_step -> prediction_data
,
98 estimation_data
=> $first_xv_step -> estimation_data
,
99 subtools
=> $subtools,
100 %{$self -> {'subtool_arguments'} -> {'xv_step'}},
101 subtool_arguments
=> $self -> {'subtool_arguments'});
103 push( @
{$self -> {'xv_steps'}}, $xv_step );
106 $self -> {'tools'} = [$self -> {'xv_steps'} -> [$model_number-1]];
112 # {{{ xv_step_post_subtool_analyze
114 start xv_step_post_subtool_analyze
116 my $subtools = undef;
117 if( scalar @
{$self -> {'subtools'}} > 1 ){
118 my @subtools = @
{$self -> {'subtools'}};
120 $subtools = \
@subtools;
122 my $first_xv_step = $self -> {'xv_steps'} -> [0];
123 if( $self -> {'xv_steps'} -> [$model_number - 1] -> cont
){
124 $self -> {'xv_steps'} -> [$model_number -1] = tool
::xv_step
-> new
( models
=> [$self -> {'models'} -> [$model_number - 1]],
125 prediction_data
=> $first_xv_step -> prediction_data
,
126 estimation_data
=> $first_xv_step -> estimation_data
,
127 subtools
=> $subtools,
128 %{$self -> {'subtool_arguments'} -> {'xv_step'}},
129 subtool_arguments
=> $self -> {'subtool_arguments'} );
130 push( @
{$self -> {'tools'}}, $self -> {'xv_steps'} -> [$model_number-1] );
133 end xv_step_post_subtool_analyze