fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744716 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
098b003e18
commit
3796de49e0
|
@ -198,7 +198,7 @@ public class CholeskyDecompositionImpl implements CholeskyDecomposition {
|
|||
|
||||
/**
|
||||
* Build a solver from decomposed matrix.
|
||||
* @param lData row-oriented storage for L<sup>T</sup> matrix data
|
||||
* @param lTData row-oriented storage for L<sup>T</sup> matrix data
|
||||
*/
|
||||
private Solver(final double[][] lTData) {
|
||||
this.lTData = lTData;
|
||||
|
|
|
@ -27,8 +27,13 @@ import org.apache.commons.math.util.OpenIntToDoubleHashMap.Iterator;
|
|||
*/
|
||||
public class SparseRealVector implements RealVector {
|
||||
|
||||
/** Entries of the vector. */
|
||||
private OpenIntToDoubleHashMap entries;
|
||||
|
||||
/** Dimension of the vector. */
|
||||
private final int virtualSize;
|
||||
|
||||
/** Tolerance for having a value considered zero. */
|
||||
private double epsilon = 1.0e-12;
|
||||
|
||||
/**
|
||||
|
|
|
@ -46,7 +46,10 @@ public class Covariance {
|
|||
|
||||
/** covariance matrix */
|
||||
private final RealMatrix covarianceMatrix;
|
||||
|
||||
|
||||
/**
|
||||
* Create an empty covariance matrix.
|
||||
*/
|
||||
public Covariance() {
|
||||
super();
|
||||
covarianceMatrix = null;
|
||||
|
@ -131,12 +134,8 @@ public class Covariance {
|
|||
/**
|
||||
* Create a covariance matrix from a matrix whose columns represent
|
||||
* covariates.
|
||||
*
|
||||
* <p>The input matrix must have at least two columns and two rows</p>
|
||||
*
|
||||
* <p>The <code>biasCorrected</code> parameter determines whether or not
|
||||
* covariance estimates are bias-corrected.</p>
|
||||
*
|
||||
* @param matrix input matrix (must have at least two columns and two rows)
|
||||
* @param biasCorrected determines whether or not covariance estimates are bias-corrected
|
||||
* @return covariance matrix
|
||||
*/
|
||||
protected RealMatrix computeCovariance(RealMatrix matrix, boolean biasCorrected) {
|
||||
|
@ -192,6 +191,7 @@ public class Covariance {
|
|||
/**
|
||||
* Throws IllegalArgumentException of the matrix does not have at least
|
||||
* two columns and two rows
|
||||
* @param matrix matrix to check
|
||||
*/
|
||||
private void checkSufficientData(final RealMatrix matrix) {
|
||||
int nRows = matrix.getRowDimension();
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
<html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!-- $Revision$ $Date$ -->
|
||||
<body>
|
||||
Correlations/Covariance computations.
|
||||
</body>
|
||||
</html>
|
|
@ -776,13 +776,25 @@ public class FastFourierTransformer implements Serializable {
|
|||
* A cache of already computed values is maintained.
|
||||
*/
|
||||
private static class RootsOfUnity {
|
||||
|
||||
|
||||
/** Number of roots of unity. */
|
||||
private int omegaCount;
|
||||
|
||||
/** Real part of the roots. */
|
||||
private double[] omegaReal;
|
||||
|
||||
/** Imaginary part of the roots for forward transform. */
|
||||
private double[] omegaImaginaryForward;
|
||||
|
||||
/** Imaginary part of the roots for reverse transform. */
|
||||
private double[] omegaImaginaryInverse;
|
||||
|
||||
/** Forward/reverse indicator. */
|
||||
private boolean isForward;
|
||||
|
||||
|
||||
/**
|
||||
* Build an engine for computing then <sup>th</sup> roots of unity
|
||||
*/
|
||||
public RootsOfUnity() {
|
||||
|
||||
omegaCount = 0;
|
||||
|
|
Loading…
Reference in New Issue