The following document contains the results of PMD 6.42.0.

Violations By Priority

Priority 1

org/hipparchus/stat/regression/MillerUpdatingRegression.java

Rule Violation Line
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 501
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 627

org/hipparchus/stat/regression/RegressionResults.java

Rule Violation Line
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 174
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 214

Priority 3

org/hipparchus/stat/correlation/KendallsCorrelation.java

Rule Violation Line
CognitiveComplexity The method 'correlation(double, double)' has a cognitive complexity of 40, current threshold is 15 156255

org/hipparchus/stat/descriptive/StreamingStatistics.java

Rule Violation Line
CognitiveComplexity The method 'aggregate(StreamingStatistics)' has a cognitive complexity of 16, current threshold is 15 419442

org/hipparchus/stat/descriptive/moment/SemiVariance.java

Rule Violation Line
CognitiveComplexity The method 'evaluate(double, double, Direction, boolean, int, int)' has a cognitive complexity of 16, current threshold is 15 236264

org/hipparchus/stat/descriptive/rank/RandomPercentile.java

Rule Violation Line
CognitiveComplexity The method 'getResult(double)' has a cognitive complexity of 20, current threshold is 15 280354
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 884
CognitiveComplexity The method 'iterator()' has a cognitive complexity of 16, current threshold is 15 9551001
CognitiveComplexity The method 'reduce(double, Collection)' has a cognitive complexity of 24, current threshold is 15 10861175

org/hipparchus/stat/fitting/MultivariateNormalMixtureExpectationMaximization.java

Rule Violation Line
CognitiveComplexity The method 'fit(MixtureMultivariateNormalDistribution, int, double)' has a cognitive complexity of 31, current threshold is 15 121249

org/hipparchus/stat/inference/BinomialTest.java

Rule Violation Line
CognitiveComplexity The method 'binomialTest(int, int, double, AlternativeHypothesis)' has a cognitive complexity of 20, current threshold is 15 104160

org/hipparchus/stat/inference/KolmogorovSmirnovTest.java

Rule Violation Line
CognitiveComplexity The method 'pelzGood(double, int)' has a cognitive complexity of 24, current threshold is 15 602721
CognitiveComplexity The method 'createExactH(double, int)' has a cognitive complexity of 24, current threshold is 15 734813
CognitiveComplexity The method 'createRoundedH(double, int)' has a cognitive complexity of 21, current threshold is 15 824893

org/hipparchus/stat/regression/MillerUpdatingRegression.java

Rule Violation Line
CognitiveComplexity The method 'include(double, double, double)' has a cognitive complexity of 20, current threshold is 15 235291
CognitiveComplexity The method 'regcf(int)' has a cognitive complexity of 16, current threshold is 15 378414
CognitiveComplexity The method 'singcheck()' has a cognitive complexity of 17, current threshold is 15 420460
CognitiveComplexity The method 'cov(int)' has a cognitive complexity of 32, current threshold is 15 499545
CognitiveComplexity The method 'inverse(double, int)' has a cognitive complexity of 16, current threshold is 15 554578
CognitiveComplexity The method 'getPartialCorrelations(int)' has a cognitive complexity of 19, current threshold is 15 613681
CognitiveComplexity The method 'vmove(int, int)' has a cognitive complexity of 36, current threshold is 15 691807
CognitiveComplexity The method 'regress(int)' has a cognitive complexity of 29, current threshold is 15 924996
CognitiveComplexity The method 'regress(int)' has a cognitive complexity of 42, current threshold is 15 10111107

org/hipparchus/stat/regression/SimpleRegression.java

Rule Violation Line
CognitiveComplexity The method 'regress(int)' has a cognitive complexity of 35, current threshold is 15 824892

Files

org/hipparchus/stat/correlation/KendallsCorrelation.java

Rule Violation Priority Line
CognitiveComplexity The method 'correlation(double, double)' has a cognitive complexity of 40, current threshold is 15 3 156255

org/hipparchus/stat/descriptive/StreamingStatistics.java

Rule Violation Priority Line
CognitiveComplexity The method 'aggregate(StreamingStatistics)' has a cognitive complexity of 16, current threshold is 15 3 419442

org/hipparchus/stat/descriptive/moment/SemiVariance.java

Rule Violation Priority Line
CognitiveComplexity The method 'evaluate(double, double, Direction, boolean, int, int)' has a cognitive complexity of 16, current threshold is 15 3 236264

org/hipparchus/stat/descriptive/rank/RandomPercentile.java

Rule Violation Priority Line
CognitiveComplexity The method 'getResult(double)' has a cognitive complexity of 20, current threshold is 15 3 280354
UseCollectionIsEmpty Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3 884
CognitiveComplexity The method 'iterator()' has a cognitive complexity of 16, current threshold is 15 3 9551001
CognitiveComplexity The method 'reduce(double, Collection)' has a cognitive complexity of 24, current threshold is 15 3 10861175

org/hipparchus/stat/fitting/MultivariateNormalMixtureExpectationMaximization.java

Rule Violation Priority Line
CognitiveComplexity The method 'fit(MixtureMultivariateNormalDistribution, int, double)' has a cognitive complexity of 31, current threshold is 15 3 121249

org/hipparchus/stat/inference/BinomialTest.java

Rule Violation Priority Line
CognitiveComplexity The method 'binomialTest(int, int, double, AlternativeHypothesis)' has a cognitive complexity of 20, current threshold is 15 3 104160

org/hipparchus/stat/inference/KolmogorovSmirnovTest.java

Rule Violation Priority Line
CognitiveComplexity The method 'pelzGood(double, int)' has a cognitive complexity of 24, current threshold is 15 3 602721
CognitiveComplexity The method 'createExactH(double, int)' has a cognitive complexity of 24, current threshold is 15 3 734813
CognitiveComplexity The method 'createRoundedH(double, int)' has a cognitive complexity of 21, current threshold is 15 3 824893

org/hipparchus/stat/regression/MillerUpdatingRegression.java

Rule Violation Priority Line
CognitiveComplexity The method 'include(double, double, double)' has a cognitive complexity of 20, current threshold is 15 3 235291
CognitiveComplexity The method 'regcf(int)' has a cognitive complexity of 16, current threshold is 15 3 378414
CognitiveComplexity The method 'singcheck()' has a cognitive complexity of 17, current threshold is 15 3 420460
CognitiveComplexity The method 'cov(int)' has a cognitive complexity of 32, current threshold is 15 3 499545
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 1 501
CognitiveComplexity The method 'inverse(double, int)' has a cognitive complexity of 16, current threshold is 15 3 554578
CognitiveComplexity The method 'getPartialCorrelations(int)' has a cognitive complexity of 19, current threshold is 15 3 613681
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 1 627
CognitiveComplexity The method 'vmove(int, int)' has a cognitive complexity of 36, current threshold is 15 3 691807
CognitiveComplexity The method 'regress(int)' has a cognitive complexity of 29, current threshold is 15 3 924996
CognitiveComplexity The method 'regress(int)' has a cognitive complexity of 42, current threshold is 15 3 10111107

org/hipparchus/stat/regression/RegressionResults.java

Rule Violation Priority Line
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 1 174
ReturnEmptyCollectionRatherThanNull Return an empty collection rather than null. 1 214

org/hipparchus/stat/regression/SimpleRegression.java

Rule Violation Priority Line
CognitiveComplexity The method 'regress(int)' has a cognitive complexity of 35, current threshold is 15 3 824892

Back to top

Version: 2.2. Last Published: 2022-08-04.

Reflow Maven skin by Andrius Velykis.