Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 22066fb8 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- cosmetic changes

parent c5748ee9
No related branches found
No related tags found
No related merge requests found
...@@ -211,8 +211,9 @@ public abstract class BasicAlterator implements Alterator { ...@@ -211,8 +211,9 @@ public abstract class BasicAlterator implements Alterator {
//count - the number of elements from the vector //count - the number of elements from the vector
//the random numElems that must be selected //the random numElems that must be selected
// numElems <= count
//uses the Fisher and Yates method to shuffle integers from an array //uses the Fisher and Yates method to shuffle integers from an array
public int [] randNumbers (int count, int numElems) { public int [] randNumbers ( int count, int numElems ) {
int [] vect = new int[count]; int [] vect = new int[count];
int [] n = new int[numElems]; int [] n = new int[numElems];
int aux, rand; int aux, rand;
......
...@@ -60,6 +60,7 @@ public class RemoveProperties extends BasicAlterator { ...@@ -60,6 +60,7 @@ public class RemoveProperties extends BasicAlterator {
int nbProperties = properties.size(); //the number of properties int nbProperties = properties.size(); //the number of properties
//System.err.println( percentage );
int toBeRemoved = Math.round( percentage*nbProperties ); //the number of properties to be removed int toBeRemoved = Math.round( percentage*nbProperties ); //the number of properties to be removed
//build the list of classes to be removed //build the list of classes to be removed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment