Changeset 9097 for trunk/ippScripts/scripts/detrend_norm_calc.pl
- Timestamp:
- Oct 2, 2006, 12:16:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_calc.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_calc.pl
r9093 r9097 61 61 my %matrix; # Matrix of statistics as a function of exposures and classes 62 62 foreach my $file (@$files) { 63 my $exp Id = $file->{'exp_id'}; # Exposure ID63 my $expTag = $file->{'exp_tag'}; # Exposure ID 64 64 my $classId = $file->{'class_id'}; # Class ID 65 65 my $stat = $file->{STATISTIC()}; # Statistic of interest 66 66 67 67 # Create matrix elements 68 $matrix{$exp Id} = {} if not defined $matrix{$expId};69 $matrix{$exp Id}->{$classId} = $stat;68 $matrix{$expTag} = {} if not defined $matrix{$expId}; 69 $matrix{$expTag}->{$classId} = $stat; 70 70 } 71 71 72 72 # Generate the input for ppNormCalc 73 73 my $normData; # Normalisation data 74 foreach my $exp Id(keys %matrix) {75 $normData .= "$exp Id\tMETADATA\n";76 foreach my $classId (keys %{$matrix{$exp Id}}) {77 $normData .= "\t" . $classId . "\tF32\t" . $matrix{$exp Id}->{$classId} . "\n";74 foreach my $expTag (keys %matrix) { 75 $normData .= "$expTag\tMETADATA\n"; 76 foreach my $classId (keys %{$matrix{$expTag}}) { 77 $normData .= "\t" . $classId . "\tF32\t" . $matrix{$expTag}->{$classId} . "\n"; 78 78 } 79 79 $normData .= "END\n\n";
Note:
See TracChangeset
for help on using the changeset viewer.
