Examples of FloatList


Examples of com.gs.collections.api.list.primitive.FloatList

        }
        if (!(otherList instanceof FloatList))
        {
            return false;
        }
        FloatList list = (FloatList) otherList;
        if (this.items.length != list.size())
        {
            return false;
        }
        for (int i = 0; i < this.items.length; i++)
        {
            if (Float.compare(this.items[i], list.get(i)) != 0)
            {
                return false;
            }
        }
        return true;
View Full Code Here

Examples of com.gs.collections.api.list.primitive.FloatList

        }
        if (!(otherList instanceof FloatList))
        {
            return false;
        }
        FloatList list = (FloatList) otherList;
        if (list.size() != 1)
        {
            return false;
        }
        return Float.compare(this.element1, list.get(0)) == 0;
    }
View Full Code Here

Examples of com.gs.collections.api.list.primitive.FloatList

        }
        if (!(otherList instanceof FloatList))
        {
            return false;
        }
        FloatList list = (FloatList) otherList;
        return list.isEmpty();
    }
View Full Code Here

Examples of com.gs.collections.api.list.primitive.FloatList

        }
        if (!(otherList instanceof FloatList))
        {
            return false;
        }
        FloatList list = (FloatList) otherList;
        if (this.size != list.size())
        {
            return false;
        }
        for (int i = 0; i < this.size; i++)
        {
            if (Float.compare(this.items[i], list.get(i)) != 0)
            {
                return false;
            }
        }
        return true;
View Full Code Here

Examples of it.unimi.dsi.fastutil.floats.FloatList

   
    @Override
    public Explanation explain(int doc){
      String[] vals = _array.getTranslatedData(doc, _dataCache.valArray);
     
      FloatList scoreList = new FloatArrayList(_dataCache.valArray.size());
      ArrayList<Explanation> explList = new ArrayList<Explanation>(scoreList.size());
      for (String val : vals)
      {
        int idx = _dataCache.valArray.indexOf(val);
        if (idx>=0){
          scoreList.add(_function.score(_dataCache.freqs[idx], _boostList[idx]));
          explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx]));
        }
      }
      Explanation topLevel = _function.explain(scoreList.toFloatArray());
      for (Explanation sub : explList){
        topLevel.addDetail(sub);
      }
      return topLevel;
    }
View Full Code Here

Examples of it.unimi.dsi.fastutil.floats.FloatList

    @Override
    public Explanation explain(int doc){
      int encoded=_dataCache.orderArray.get(doc);
     
      int count=1;
      FloatList scoreList = new FloatArrayList(_dataCache.valArray.size());
      ArrayList<Explanation> explList = new ArrayList<Explanation>(scoreList.size());
      while(encoded != 0)
      {
        if ((encoded & 0x00000001) != 0x0){
          int idx = count -1;
          scoreList.add(_function.score(_dataCache.freqs[idx], _boostList[idx]));
          explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx]));
        }
        count++;
        encoded >>>= 1;
      }
      Explanation topLevel = _function.explain(scoreList.toFloatArray());
      for (Explanation sub : explList){
        topLevel.addDetail(sub);
      }
      return topLevel;
    }
View Full Code Here

Examples of it.unimi.dsi.fastutil.floats.FloatList

   
    @Override
    public Explanation explain(int doc){
      String[] vals = _array.getTranslatedData(doc, _dataCache.valArray);
     
      FloatList scoreList = new FloatArrayList(_dataCache.valArray.size());
      ArrayList<Explanation> explList = new ArrayList<Explanation>(scoreList.size());
      for (String val : vals)
      {
        int idx = _dataCache.valArray.indexOf(val);
        if (idx>=0){
          scoreList.add(_function.score(_dataCache.freqs[idx], _boostList[idx]));
          explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx]));
        }
      }
      Explanation topLevel = _function.explain(scoreList.toFloatArray());
      for (Explanation sub : explList){
        topLevel.addDetail(sub);
      }
      return topLevel;
    }
View Full Code Here

Examples of it.unimi.dsi.fastutil.floats.FloatList

    @Override
    public Explanation explain(int doc){
      int encoded=_dataCache.orderArray.get(doc);
     
      int count=1;
      FloatList scoreList = new FloatArrayList(_dataCache.valArray.size());
      ArrayList<Explanation> explList = new ArrayList<Explanation>(scoreList.size());
      while(encoded != 0)
      {
        if ((encoded & 0x00000001) != 0x0){
          int idx = count -1;
          scoreList.add(_function.score(_dataCache.freqs[idx], _boostList[idx]));
          explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx]));
        }
        count++;
        encoded >>>= 1;
      }
      Explanation topLevel = _function.explain(scoreList.toFloatArray());
      for (Explanation sub : explList){
        topLevel.addDetail(sub);
      }
      return topLevel;
    }
View Full Code Here

Examples of it.unimi.dsi.fastutil.floats.FloatList

   
    @Override
    public Explanation explain(int doc){
      String[] vals = _array.getTranslatedData(doc, _dataCache.valArray);
     
      FloatList scoreList = new FloatArrayList(_dataCache.valArray.size());
      ArrayList<Explanation> explList = new ArrayList<Explanation>(scoreList.size());
      for (String val : vals)
      {
        int idx = _dataCache.valArray.indexOf(val);
        if (idx>=0){
          scoreList.add(_function.score(_dataCache.freqs[idx], _boostList[idx]));
          explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx]));
        }
      }
      Explanation topLevel = _function.explain(scoreList.toFloatArray());
      for (Explanation sub : explList){
        topLevel.addDetail(sub);
      }
      return topLevel;
    }
View Full Code Here

Examples of it.unimi.dsi.fastutil.floats.FloatList

    @Override
    public Explanation explain(int doc){
      int encoded=_dataCache.orderArray.get(doc);
     
      int count=1;
      FloatList scoreList = new FloatArrayList(_dataCache.valArray.size());
      ArrayList<Explanation> explList = new ArrayList<Explanation>(scoreList.size());
      while(encoded != 0)
      {
        if ((encoded & 0x00000001) != 0x0){
          int idx = count -1;
          scoreList.add(_function.score(_dataCache.freqs[idx], _boostList[idx]));
          explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx]));
        }
        count++;
        encoded >>>= 1;
      }
      Explanation topLevel = _function.explain(scoreList.toFloatArray());
      for (Explanation sub : explList){
        topLevel.addDetail(sub);
      }
      return topLevel;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.