Apache Commons logo Commons Math

PMD Results

The following document contains the results of PMD 5.6.1.

Files

org/apache/commons/math4/analysis/integration/TrapezoidIntegrator.java

Violation Line
To avoid mistakes add a comment at the beginning of the stage method if you want a default access modifier 107131

org/apache/commons/math4/analysis/interpolation/NevilleInterpolator.java

Violation Line
To avoid mistakes add a comment at the beginning of the serialVersionUID field if you want a default access modifier 41

org/apache/commons/math4/distribution/EnumeratedDistribution.java

Violation Line
To avoid mistakes add a comment at the beginning of the probability method if you want a default access modifier 127138

org/apache/commons/math4/fitting/leastsquares/LeastSquaresProblem.java

Violation Line
Avoid modifiers which are implied by the context 80173

org/apache/commons/math4/linear/BiDiagonalTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the getHouseholderVectorsRef method if you want a default access modifier 219221
To avoid mistakes add a comment at the beginning of the getMainDiagonalRef method if you want a default access modifier 229231
To avoid mistakes add a comment at the beginning of the getSecondaryDiagonalRef method if you want a default access modifier 239241
To avoid mistakes add a comment at the beginning of the isUpperBiDiagonal method if you want a default access modifier 247249

org/apache/commons/math4/linear/BlockFieldMatrix.java

Violation Line
To avoid mistakes add a comment at the beginning of the setColumnMatrix method if you want a default access modifier 967996

org/apache/commons/math4/linear/BlockRealMatrix.java

Violation Line
To avoid mistakes add a comment at the beginning of the setColumnMatrix method if you want a default access modifier 9751004

org/apache/commons/math4/linear/HessenbergTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the getHouseholderVectorsRef method if you want a default access modifier 171173

org/apache/commons/math4/linear/RealVector.java

Violation Line
To avoid mistakes add a comment at the beginning of the UnmodifiableEntry nested class if you want a default access modifier 16081626

org/apache/commons/math4/linear/SchurTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the x field if you want a default access modifier 443
To avoid mistakes add a comment at the beginning of the y field if you want a default access modifier 445
To avoid mistakes add a comment at the beginning of the w field if you want a default access modifier 447
To avoid mistakes add a comment at the beginning of the exShift field if you want a default access modifier 449

org/apache/commons/math4/linear/SymmLQ.java

Violation Line
To avoid mistakes add a comment at the beginning of the CBRT_MACH_PREC field if you want a default access modifier 243
To avoid mistakes add a comment at the beginning of the MACH_PREC field if you want a default access modifier 246
To avoid mistakes add a comment at the beginning of the refineSolution method if you want a default access modifier 502536
To avoid mistakes add a comment at the beginning of the init method if you want a default access modifier 543628
To avoid mistakes add a comment at the beginning of the update method if you want a default access modifier 636753
To avoid mistakes add a comment at the beginning of the hasConverged method if you want a default access modifier 802804
To avoid mistakes add a comment at the beginning of the bEqualsNullVector method if you want a default access modifier 811813
To avoid mistakes add a comment at the beginning of the betaEqualsZero method if you want a default access modifier 821823
To avoid mistakes add a comment at the beginning of the getNormOfResidual method if you want a default access modifier 830832

org/apache/commons/math4/linear/TriDiagonalTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the getHouseholderVectorsRef method if you want a default access modifier 163165
To avoid mistakes add a comment at the beginning of the getMainDiagonalRef method if you want a default access modifier 173175
To avoid mistakes add a comment at the beginning of the getSecondaryDiagonalRef method if you want a default access modifier 183185

org/apache/commons/math4/ml/clustering/CentroidCluster.java

Violation Line
To avoid mistakes add a comment at the beginning of the getCenter method if you want a default access modifier 4951

org/apache/commons/math4/ml/clustering/KMeansPlusPlusClusterer.java

Violation Line
To avoid mistakes add a comment at the beginning of the getRandomGenerator method if you want a default access modifier 217219
To avoid mistakes add a comment at the beginning of the getEmptyClusterStrategy method if you want a default access modifier 224226
To avoid mistakes add a comment at the beginning of the adjustClustersCenters method if you want a default access modifier 233257
To avoid mistakes add a comment at the beginning of the chooseInitialCenters method if you want a default access modifier 292409

org/apache/commons/math4/ml/clustering/evaluation/CalinskiHarabasz.java

Violation Line
Avoid using a branching statement as the last in a loop. 165

org/apache/commons/math4/ml/neuralnet/MapRanking.java

Violation Line
To avoid mistakes add a comment at the beginning of the COMPARATOR field if you want a default access modifier 128136

org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java

Violation Line
To avoid mistakes add a comment at the beginning of the from method if you want a default access modifier 698770

org/apache/commons/math4/optim/linear/SimplexSolver.java

Violation Line
To avoid mistakes add a comment at the beginning of the DEFAULT_ULPS field if you want a default access modifier 67
To avoid mistakes add a comment at the beginning of the DEFAULT_CUT_OFF field if you want a default access modifier 70

org/apache/commons/math4/optim/linear/SimplexTableau.java

Violation Line
To avoid mistakes add a comment at the beginning of the isOptimal method if you want a default access modifier 629639

org/apache/commons/math4/optim/linear/SolutionCallback.java

Violation Line
To avoid mistakes add a comment at the beginning of the setTableau method if you want a default access modifier 3840
Ternary operators that can be simplified with || or && 60

org/apache/commons/math4/optim/nonlinear/scalar/noderiv/CollidingBodiesOptimizer.java

Violation Line
fieldCommentRequirement Required 219

org/apache/commons/math4/optim/univariate/BracketFinder.java

Violation Line
To avoid mistakes add a comment at the beginning of the value method if you want a default access modifier 303312

org/apache/commons/math4/stat/descriptive/moment/SemiVariance.java

Violation Line
To avoid mistakes add a comment at the beginning of the getDirection method if you want a default access modifier 359361

org/apache/commons/math4/stat/descriptive/rank/PSquarePercentile.java

Violation Line
Ternary operators that can be simplified with || or && 911
Ternary operators that can be simplified with || or && 927

org/apache/commons/math4/stat/descriptive/rank/Percentile.java

Violation Line
publicMethodCommentRequirement Required 942945
publicMethodCommentRequirement Required 973976
publicMethodCommentRequirement Required 10131016
publicMethodCommentRequirement Required 10341037
publicMethodCommentRequirement Required 10591062
publicMethodCommentRequirement Required 10861089
publicMethodCommentRequirement Required 11191122
publicMethodCommentRequirement Required 11531175
publicMethodCommentRequirement Required 12031206
publicMethodCommentRequirement Required 12301233
To avoid mistakes add a comment at the beginning of the getName method if you want a default access modifier 13781380

org/apache/commons/math4/stat/interval/IntervalUtils.java

Violation Line
To avoid mistakes add a comment at the beginning of the checkParameters method if you want a default access modifier 156171

org/apache/commons/math4/transform/FastCosineTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the serialVersionUID field if you want a default access modifier 68

org/apache/commons/math4/transform/FastFourierTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the serialVersionUID field if you want a default access modifier 53

org/apache/commons/math4/transform/FastHadamardTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the serialVersionUID field if you want a default access modifier 42

org/apache/commons/math4/transform/FastSineTransformer.java

Violation Line
To avoid mistakes add a comment at the beginning of the serialVersionUID field if you want a default access modifier 73

org/apache/commons/math4/util/CombinatoricsUtils.java

Violation Line
To avoid mistakes add a comment at the beginning of the STIRLING_S2 field if you want a default access modifier 36

org/apache/commons/math4/util/FastMath.java

Violation Line
To avoid mistakes add a comment at the beginning of the EXP_INT_TABLE_MAX_INDEX field if you want a default access modifier 90
To avoid mistakes add a comment at the beginning of the EXP_INT_TABLE_LEN field if you want a default access modifier 92
To avoid mistakes add a comment at the beginning of the LN_MANT_LEN field if you want a default access modifier 94
To avoid mistakes add a comment at the beginning of the EXP_FRAC_TABLE_LEN field if you want a default access modifier 96
To avoid mistakes add a comment at the beginning of the getK method if you want a default access modifier 43294331
To avoid mistakes add a comment at the beginning of the getRemA method if you want a default access modifier 43354337
To avoid mistakes add a comment at the beginning of the getRemB method if you want a default access modifier 43414343

org/apache/commons/math4/util/FastMathCalc.java

Violation Line
To avoid mistakes add a comment at the beginning of the slowCos method if you want a default access modifier 205240
To avoid mistakes add a comment at the beginning of the slowSin method if you want a default access modifier 250284
To avoid mistakes add a comment at the beginning of the slowexp method if you want a default access modifier 294321
To avoid mistakes add a comment at the beginning of the splitReciprocal method if you want a default access modifier 402430
To avoid mistakes add a comment at the beginning of the expint method if you want a default access modifier 491529
To avoid mistakes add a comment at the beginning of the slowLog method if you want a default access modifier 549591
To avoid mistakes add a comment at the beginning of the printarray method if you want a default access modifier 601614
To avoid mistakes add a comment at the beginning of the printarray method if you want a default access modifier 623631
To avoid mistakes add a comment at the beginning of the format method if you want a default access modifier 637643

org/apache/commons/math4/util/FastMathLiteralArrays.java

Violation Line
To avoid mistakes add a comment at the beginning of the loadExpIntA method if you want a default access modifier 61406142
To avoid mistakes add a comment at the beginning of the loadExpIntB method if you want a default access modifier 61486150
To avoid mistakes add a comment at the beginning of the loadExpFracA method if you want a default access modifier 61566158
To avoid mistakes add a comment at the beginning of the loadExpFracB method if you want a default access modifier 61646166
To avoid mistakes add a comment at the beginning of the loadLnMant method if you want a default access modifier 61726174