| 1 | package Data::Ovulation::Result; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use 5.008; | ||
| 7 | |||
| 8 | use Carp; | ||
| 9 | use base 'Class::Accessor'; | ||
| 10 | |||
| 11 | __PACKAGE__->mk_accessors( qw/ day_rise cover_temperature impregnation ovulation_days fertile_days min max / ); | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | Data::Ovulation::Result - Result class for Data::Ovulation | ||
| 16 | |||
| 17 | =head1 VERSION | ||
| 18 | |||
| 19 | Version 0.01 | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | our $VERSION = '0.01'; | ||
| 24 | |||
| 25 | =head1 SYNOPSIS | ||
| 26 | |||
| 27 | See L<Data::Ovulation>. | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | See L<Data::Ovulation>. | ||
| 32 | |||
| 33 | =head1 SUBROUTINES/METHODS | ||
| 34 | |||
| 35 | =head2 C<day_rise()> | ||
| 36 | |||
| 37 | Returns the first day on which the temperature rises. This indicates an ovulation. | ||
| 38 | |||
| 39 | =head2 C<ovulation_days()> | ||
| 40 | |||
| 41 | Returns an arrayref of days on which an ovulation is likely to have occured. | ||
| 42 | |||
| 43 | =head2 C<fertile_days()> | ||
| 44 | |||
| 45 | Returns an arrayref of days with high fertility. | ||
| 46 | |||
| 47 | =head2 C<cover_temperature()> | ||
| 48 | |||
| 49 | Returns the "cover" temperature. This is the highest one of the six temperature | ||
| 50 | values prior to the ovulation day. | ||
| 51 | |||
| 52 | =head2 C<impregnation()> | ||
| 53 | |||
| 54 | Returns true if an impregnation is likely to have occured. | ||
| 55 | |||
| 56 | =head2 C<min()> | ||
| 57 | |||
| 58 | Returns the lowest temperature value. | ||
| 59 | |||
| 60 | =head2 C<max()> | ||
| 61 | |||
| 62 | Returns the highest temperature value. | ||
| 63 | |||
| 64 | =head1 AUTHOR | ||
| 65 | |||
| 66 | Tobias Kremer, C<< <cpan at funkreich.de> >> | ||
| 67 | |||
| 68 | =head1 COPYRIGHT & LICENSE | ||
| 69 | |||
| 70 | Copyright 2007 Tobias Kremer, all rights reserved. | ||
| 71 | |||
| 72 | This program is free software; you can redistribute it and/or modify it | ||
| 73 | under the same terms as Perl itself. | ||
| 74 | |||
| 75 | =cut | ||
| 76 | |||
| 77 | 1; |