| 1 | package Evo::Inference::Node; | ||
| 2 | |||
| 3 | sub new { | ||
| 4 | my ($class) = @_; | ||
| 5 | |||
| 6 | my $self = { | ||
| 7 | }; | ||
| 8 | |||
| 9 | $class = ref($class) || $class; | ||
| 10 | |||
| 11 | bless $self, $class; | ||
| 12 | } | ||
| 13 | |||
| 14 | sub set { | ||
| 15 | my ($self, $v) = @_; | ||
| 16 | |||
| 17 | $v->set($self); | ||
| 18 | } | ||
| 19 | |||
| 20 | sub feature { | ||
| 21 | my ($self, $v) = @_; | ||
| 22 | |||
| 23 | return $v->feature($self); | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; |