Class ScanAtomes
java.lang.Object
org.bilat.discoveryMat.moo.data.jpa.atome.ScanAtomes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(float data) cloneOf()intgetDT()intintbooleanintstatic longpgcd(long a, long b) Plus grand commun diviseurstatic longppmc(long a, long b) Plus petit multiple communstatic float[]sample(float[] tabOriginale, int sizeSample) Sample of value Example1 : pas=2 Input : a b c d e f size=6 Output : a c e size=3 Example2 : pas=3 Input : a b c d e f g h i j size=10 Output : a d g j size=4 Example3 : pas=3 Input : a b c d e f g h i j k l size=12 Output : a d g j size=4 Example4 : pas=3 Input : a b c d e f g h i j k l m size=13 Output : a d g j m size=5 Example4 : pas=3 Input : a b c d e f g h i j k l m n size=14 Output : a d g j m size=5float[]static longtoDivisbaleDessous(long a, long diviseur) Exemples toDivisbale(10,4)=8 toDivisbale(10,3)=9 toDivisbale(10,2)=10 toDivisbale(10,5)=10static longtoDivisbaleDessus(long a, long diviseur) Exemples toDivisbale(10,4)=12 toDivisbale(10,3)=12 toDivisbale(10,2)=10 toDivisbale(10,5)=10double[]float[]Good size POTENTIEL_LENGTH 901double[]toString()
-
Constructor Details
-
ScanAtomes
public ScanAtomes(int nFinal, int dtMS) -
ScanAtomes
-
-
Method Details
-
cloneOf
-
toString
-
addData
public void addData(float data) -
toArrayCorriger
public float[] toArrayCorriger() -
toDoubleArrayCorriger
public double[] toDoubleArrayCorriger() -
toRealSizeCorriger
public double[] toRealSizeCorriger() -
toPotentielArrayCorriger
public float[] toPotentielArrayCorriger()Good size POTENTIEL_LENGTH 901 -
nbDataErroner
public int nbDataErroner() -
getListDataBrute
-
getListDataCorriger
-
getNfinal
public int getNfinal() -
getEffectiveSize
public int getEffectiveSize() -
getDT
public int getDT() -
isScanFull
public boolean isScanFull() -
sample
public static float[] sample(float[] tabOriginale, int sizeSample) Sample of value Example1 : pas=2 Input : a b c d e f size=6 Output : a c e size=3 Example2 : pas=3 Input : a b c d e f g h i j size=10 Output : a d g j size=4 Example3 : pas=3 Input : a b c d e f g h i j k l size=12 Output : a d g j size=4 Example4 : pas=3 Input : a b c d e f g h i j k l m size=13 Output : a d g j m size=5 Example4 : pas=3 Input : a b c d e f g h i j k l m n size=14 Output : a d g j m size=5 -
ppmc
public static long ppmc(long a, long b) Plus petit multiple commun -
pgcd
public static long pgcd(long a, long b) Plus grand commun diviseur -
toDivisbaleDessous
public static long toDivisbaleDessous(long a, long diviseur) Exemples toDivisbale(10,4)=8 toDivisbale(10,3)=9 toDivisbale(10,2)=10 toDivisbale(10,5)=10 -
toDivisbaleDessus
public static long toDivisbaleDessus(long a, long diviseur) Exemples toDivisbale(10,4)=12 toDivisbale(10,3)=12 toDivisbale(10,2)=10 toDivisbale(10,5)=10
-