Clair

ChisqIndependent


SummaryIncluded librariesPackage variablesSynopsisGeneral documentationMethods

SummaryTop
Clair::ChisqIndependent - compute the Chi square for the CLAIR Library
head1 VERSION
Version 0.01

Package variablesTop
No package variables defined.

Included modulesTop
Carp
Exporter
Statistics::ChisqIndep
Statistics::Distributions qw ( chisqrprob )

InheritTop
Exporter Statistics::ChisqIndep

SynopsisTop
This module works for Gen to produce the Chi square for given data. It's subclassed from Statistics::ChisqIndep, and add one more method: recompute_chisq to compute the p-value of the data when degree of freedom changes

DescriptionTop
No description!
MethodsTop
recompute_chisqDescriptionCode

Methods description


recompute_chisq() code    nextTop
return the p-value when the degree of freedom is changed.

Methods code


recompute_chisqdescriptionprevnextTop
sub recompute_chisq {
	my $self = shift;
	my $df = $self->{df};
	my $chisq = $self->{chisq_statistic};

	if ($df < 0 || $chisq < 0) {
		croak "error: df = $df\tchisq = $chisq";
	}
	
	my $chiprob = chisqrprob($df, $chisq);
#	print "Generated by ChisqIndependt\n";
$self->{p_value} = $chiprob; return 1;
}

General documentation


AUTHORTop
Chen, Huang << <clair at umich.edu> >>

BUGSTop
Please report any bugs or feature requests to
bug-clair-document at rt.cpan.org, or through the web interface at

SUPPORTTop
You can find documentation for this module with the perldoc command.
    perldoc Clair::ChisqIndependent
You can also look for information at:         

    * AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/clairlib-dev

    * CPAN Ratings

http://cpanratings.perl.org/d/clairlib-dev

    * RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=clairlib-dev

    * Search CPAN

http://search.cpan.org/dist/clairlib-dev

COPYRIGHT & LICENSE Top
Copyright 2008 The University of Michigan, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.