package formules;import fr.ifremer.isisfish.entities.*;import org.codelutin.math.matrix.*;import fr.ifremer.isisfish.types.Date;import fr.ifremer.isisfish.types.Month;import fr.ifremer.isisfish.types.RangeOfValues;import fr.ifremer.isisfish.types.TimeUnit;import java.util.*;public class fr_ifremer_isisfish_entities_Equation_1175514903058_0_5946955592178856 implements fr.ifremer.isisfish.equation.SelectivityEquation {public double compute(fr.ifremer.isisfish.simulator.SimulationContext context, fr.ifremer.isisfish.entities.Population pop, fr.ifremer.isisfish.entities.PopulationGroup group, fr.ifremer.isisfish.entities.Metier metier) throws Exception {if (metier.getGearParameterValueAsDouble()<=60) return (1/(1+(Math.exp(-2.04*(group.getLength()-14.78)))));else if (metier.getGearParameterValueAsDouble()<=70) return (1/(1+(Math.exp(-2.45*(group.getLength()-17.74)))));else if (metier.getGearParameterValueAsDouble()<=80) return (1/(1+(Math.exp(-2.86*(group.getLength()-20.7)))));else if (metier.getGearParameterValueAsDouble()<=90) return (1/(1+(Math.exp(-3.27*(group.getLength()-23.65)))));else return  1;
}
}
