src/main/java/lv/semti/morphology/corpus/Statistics.java
public double getEstimate(AttributeValues wordform) {
		double estimate = 0.1;
		String endingIdStr = wordform.getValue(AttributeNames.i_EndingID);
		int endingId = (endingIdStr == null) ? -1 : Integer.parseInt(endingIdStr);
		if (endingFrequency.get(endingId) != null) estimate += endingFrequency.get(endingId);

		String lexemeIdStr = wordform.getValue(AttributeNames.i_LexemeID);
		int lexemeId = (lexemeIdStr == null) ? -1 : Integer.parseInt(lexemeIdStr);
		if (lexemeFrequency.get(lexemeId) != null) estimate += lexemeFrequency.get(lexemeId) * lexemeWeight;

		return estimate;
	}
public double getEstimate(AttributeValues wordform) {
		double estimate = 0.1;
		String endingIdStr = wordform.getValue(AttributeNames.i_EndingID);
		int endingId = (endingIdStr == null) ? -1 : Integer.parseInt(endingIdStr);
		if (endingFrequency.get(endingId) != null) estimate += endingFrequency.get(endingId);

		String lexemeIdStr = wordform.getValue(AttributeNames.i_LexemeID);
		int lexemeId = (lexemeIdStr == null) ? -1 : Integer.parseInt(lexemeIdStr);
		if (lexemeFrequency.get(lexemeId) != null) estimate += lexemeFrequency.get(lexemeId) * lexemeWeight;

		return estimate;
	}
public double getEstimate ( AttributeValues wordform ) { double estimate = 0.1 ; String endingIdStr = wordform . getValue ( AttributeNames . i_EndingID ) ; int endingId = ( endingIdStr == null ) ? - 1 : Integer . parseInt ( endingIdStr ) ; if ( endingFrequency . get ( endingId ) != null ) estimate += endingFrequency . get ( endingId ) ; String lexemeIdStr = wordform . getValue ( AttributeNames . i_LexemeID ) ; int lexemeId = ( lexemeIdStr == null ) ? - 1 : Integer . parseInt ( lexemeIdStr ) ; if ( lexemeFrequency . get ( lexemeId ) != null ) estimate += lexemeFrequency . get ( lexemeId ) * lexemeWeight ; return estimate ; }
Cumulative frequency estimate for given wordform.
@param wordform	wordform to describe.
@return			lexeme frequency + ending frequency.
Cumulative frequency estimate for given wordform .