Class ScanAtomes

java.lang.Object
org.bilat.discoveryMat.moo.data.jpa.atome.ScanAtomes

public class ScanAtomes extends Object
  • Constructor Details

    • ScanAtomes

      public ScanAtomes(int nFinal, int dtMS)
    • ScanAtomes

      public ScanAtomes(ScanAtomes source)
  • Method Details

    • cloneOf

      public ScanAtomes cloneOf()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public List<Float> getListDataBrute()
    • getListDataCorriger

      public List<Float> 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