Class IstatistikAraclari


  • public class IstatistikAraclari
    extends java.lang.Object
    Bazi basit yuzde hesaplamalar�nda kullannilan fonksiyonlar. TODO: istatistik paketine alinmasi dusunulebilir.
    Author:
    MDA
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.text.DecimalFormat df  
      static java.text.DecimalFormat df2  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String onbindeHesaplaStr​(long input, long total)
      Gene yuzde hesabı.
      static double yuzdeHesapla​(long input, long total)
      Verilen girisin toplamın yüzde kaçını oluşturduğunu döndürür.
      static java.lang.String yuzdeHesaplaStr​(long input, long total)
      Yuzde hesaplamasının aynısı, sadece formatlı String olarak döndürür.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • df

        public static java.text.DecimalFormat df
      • df2

        public static java.text.DecimalFormat df2
    • Constructor Detail

      • IstatistikAraclari

        public IstatistikAraclari()
    • Method Detail

      • yuzdeHesapla

        public static double yuzdeHesapla​(long input,
                                          long total)
        Verilen girisin toplamın yüzde kaçını oluşturduğunu döndürür.
        Parameters:
        input -
        total -
        Returns:
        input, toplamin %kaci ise. Eğer total 0 ise -1
      • yuzdeHesaplaStr

        public static java.lang.String yuzdeHesaplaStr​(long input,
                                                       long total)
        Yuzde hesaplamasının aynısı, sadece formatlı String olarak döndürür.
        Parameters:
        input - : giriş
        total - : toplam
        Returns:
      • onbindeHesaplaStr

        public static java.lang.String onbindeHesaplaStr​(long input,
                                                         long total)
        Gene yuzde hesabı. ama bu sefer virgülden sonra 5 basamak hassasiyet
        Returns: