Update doc and fix weak problems
This commit is contained in:
@@ -180,7 +180,7 @@ public class Application {
|
||||
};
|
||||
|
||||
Function<Population,Double> getInfes = population -> {
|
||||
return population.getTotal().getAbondance() != null ? population.getTotal().getPrevalence().transformToDouble() : null;
|
||||
return population.getTotal().getAbondance() != null ? population.getTotal().getAbondance() : null;
|
||||
};
|
||||
|
||||
popSet = Nettoyage.nettoieColumns(popSet, getLength, setLength, false);
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
package ecoparasite.completion;
|
||||
|
||||
import ecoparasite.input.InputFactory;
|
||||
import ecoparasite.input.InputFileException;
|
||||
import ecoparasite.input.RawData;
|
||||
import ecoparasite.input.RawDataOverflow;
|
||||
import ecoparasite.poisson.Mackerel;
|
||||
import ecoparasite.poisson.Poisson;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.function.*;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package ecoparasite.input;
|
||||
|
||||
import ecoparasite.poisson.Poisson;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,14 +2,11 @@ package ecoparasite.input;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Array;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* Permet de manipuler les fichiers CSV, de les lire et d'en créer des objets RawData pour ces données brutes.
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package ecoparasite.nettoyage;
|
||||
|
||||
import ecoparasite.completion.Completion;
|
||||
import ecoparasite.poisson.Poisson;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
@@ -40,7 +37,7 @@ public class Nettoyage {
|
||||
int quartIndex = array.size()/4;
|
||||
Double firstQuart = array.get(quartIndex);
|
||||
Double thirdQuart = array.get(quartIndex *3);
|
||||
Double IQR = thirdQuart - firstQuart;
|
||||
double IQR = thirdQuart - firstQuart;
|
||||
|
||||
for(T item : list){
|
||||
if( getValue.apply(item) == null || getValue.apply(item).doubleValue() < firstQuart - (IQR * 1.5) || getValue.apply(item).doubleValue() > thirdQuart + (IQR * 1.5) || ( !allowNegative && getValue.apply(item).doubleValue() < 0 ) ){
|
||||
|
||||
@@ -98,7 +98,7 @@ public class Population implements DataParsing {
|
||||
public static HashSet<Population> parse(RawData data, int parseTypeId ) throws RawDataOverflow, InvalidParsingException {
|
||||
switch (parseTypeId) {
|
||||
case 1:
|
||||
return PopulationParsing.parseParasitesPeru(data);
|
||||
return PopulationParsing.parseParasitesPeru(data); // Parsing de la population du fichier ParasitesPeru2021.csv
|
||||
default:
|
||||
throw new InvalidParsingException(parseTypeId, Population.class.getSimpleName() );
|
||||
}
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
package ecoparasite.svg;
|
||||
|
||||
import ecoparasite.representation.ValeursXY;
|
||||
import ecoparasite.svg.elements.Element;
|
||||
import ecoparasite.svg.elements.ElementsFactory;
|
||||
|
||||
import javax.lang.model.util.ElementScanner14;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.UUID;
|
||||
|
||||
public class SVGFactory {
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
package ecoparasite.svg.elements;
|
||||
|
||||
import ecoparasite.svg.Coordonnees;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
|
||||
/**
|
||||
* Contient divers éléments utiles pour les fichiers SVG.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user