src/main/java/pt/it/av/tnav/ml/tm/dp/DPW.java
public double dimention(NGram term) {
    double rv = 0.0;
    DpDimension dp = dpDimensions.stream()
        .filter(d -> d.term.equals(term))
        .findAny()
        .orElse(null);
    if (dp != null) {
      rv = dp.value;
    }
    return rv;
  }
/**
   * Return the weight of the term in this profile.
   *
   * @param term {@link DpDimension} name ({@link NGram})
   * @return the weight of the term in this profile
   */
Return the weight of the term in this profile.
@param term  DpDimension name ( NGram)
@return the weight of the term in this profile
Return the weight of the term in this profile . @param term DpDimension name ( NGram ) @return the weight of the term in this profile
public double dimention(NGram term) {
    double rv = 0.0;
    DpDimension dp = dpDimensions.stream()
        .filter(d -> d.term.equals(term))
        .findAny()
        .orElse(null);
    if (dp != null) {
      rv = dp.value;
    }
    return rv;
  }
public double dimention ( NGram term ) { double rv = 0.0 ; DpDimension dp = dpDimensions . stream ( ) . filter ( d -> d . term . equals ( term ) ) . findAny ( ) . orElse ( null ) ; if ( dp != null ) { rv = dp . value ; } return rv ; }
Return the weight of the term in this profile.
Return the weight of the term in this profile .