--- loncom/interface/statistics/lonproblemstatistics.pm 2004/06/16 14:21:16 1.88
+++ loncom/interface/statistics/lonproblemstatistics.pm 2004/07/22 17:33:29 1.92
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonproblemstatistics.pm,v 1.88 2004/06/16 14:21:16 matthew Exp $
+# $Id: lonproblemstatistics.pm,v 1.92 2004/07/22 17:33:29 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -263,7 +263,7 @@ my @Fields = (
graphable => 'yes',
long_title => 'Degree of Discrimination',
selectable => 'yes',
- defaultselected => 'no',
+ defaultselected => 'yes',
},
## duedate included for research purposes. Commented out most of the time.
# { name => 'duedate',
@@ -704,7 +704,9 @@ sub BuildProblemStatisticsPage {
sub output_sequence_statistics {
my ($r) = @_;
my $c=$r->connection();
- $r->print('
'.&mt('Sequence Statistics').'
');
+ $r->print(''.&mt('Sequence Statistics').
+ &Apache::loncommon::help_open_topic('Statistics_Sequence').
+ '
');
$r->print(''."\n".
''."\n".
'');
@@ -817,7 +819,7 @@ sub statistics_html_table_data {
if (exists($field->{'special'}) && $field->{'special'} eq 'link') {
$row .= '';
}
- if (exists($field->{'format'})) {
+ if (exists($field->{'format'}) && $data->{$field->{'name'}} !~ /[A-Z]/i) {
$row .= sprintf($field->{'format'},$data->{$field->{'name'}});
} else {
$row .= $data->{$field->{'name'}};
@@ -1579,6 +1581,10 @@ sub compute_discrimination_factor {
map {
$_->[&Apache::loncoursedata::RNK_student()];
} @{$ranking}[($num_students-$number_to_grab)..($num_students-1)];
+ if (! @BottomSet || (@BottomSet == 1 && $BottomSet[0] eq '') ||
+ ! @TopSet || (@TopSet == 1 && $TopSet[0] eq '')) {
+ return 'nan';
+ }
my ($bottom_sum,$bottom_max) =
&Apache::loncoursedata::get_sum_of_scores($resource,$part,\@BottomSet,
undef,$starttime,$endtime);
|