@Test public void testSmog_index() { logger.info("smog_index"); String strText = TEST_STRING; double expResult = 14.1; double result = ReadabilityStatistics.smogIndex(strText); assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH); }
public static double smogIndex(String strText) { strText = cleanText(strText); return PHPMethods.round(1.043 * Math.sqrt((wordsWithThreeSyllables(strText) * (30.0 / sentenceCount(strText))) + 3.1291), 1); }
ReadabilityStatistics { public static double smogIndex(String strText) { strText = cleanText(strText); return PHPMethods.round(1.043 * Math.sqrt((wordsWithThreeSyllables(strText) * (30.0 / sentenceCount(strText))) + 3.1291), 1); } }
ReadabilityStatistics { public static double smogIndex(String strText) { strText = cleanText(strText); return PHPMethods.round(1.043 * Math.sqrt((wordsWithThreeSyllables(strText) * (30.0 / sentenceCount(strText))) + 3.1291), 1); }  }
ReadabilityStatistics { public static double smogIndex(String strText) { strText = cleanText(strText); return PHPMethods.round(1.043 * Math.sqrt((wordsWithThreeSyllables(strText) * (30.0 / sentenceCount(strText))) + 3.1291), 1); }  static double fleschKincaidReadingEase(String strText); static double fleschKincaidGradeLevel(String strText); static double gunningFogScore(String strText); static double colemanLiauIndex(String strText); static double smogIndex(String strText); static double automatedReadabilityIndex(String strText); static double daleChallScore(String strText); static double daleChallGrade(String strText); static double spacheScore(String strText); }
ReadabilityStatistics { public static double smogIndex(String strText) { strText = cleanText(strText); return PHPMethods.round(1.043 * Math.sqrt((wordsWithThreeSyllables(strText) * (30.0 / sentenceCount(strText))) + 3.1291), 1); }  static double fleschKincaidReadingEase(String strText); static double fleschKincaidGradeLevel(String strText); static double gunningFogScore(String strText); static double colemanLiauIndex(String strText); static double smogIndex(String strText); static double automatedReadabilityIndex(String strText); static double daleChallScore(String strText); static double daleChallGrade(String strText); static double spacheScore(String strText);  }