/** * Constructor that takes the first value * @param firstValue the first value in the stream */ public RunningStat( final double firstValue ) { this.n = 0; this.push( firstValue ); }
/** * Returns the running standard deviation * * @return The running standard deviation */ public double standardDeviation() { return Math.sqrt( this.variance() ); } };
this.faceSizes.put( face, new RunningStat(faceSizePc) ); ca.push( faceSizePc ); if( stats[i] == null ) stats[i] = new RunningStat(); stats[i].push( poseInfo[i] );
this.faceSizes.put( face, new RunningStat(faceSizePc) ); ca.push( faceSizePc ); if( stats[i] == null ) stats[i] = new RunningStat(); stats[i].push( poseInfo[i] );
final double size = this.faceSizes.get( onlyFace ).mean();
final double size = this.faceSizes.get( onlyFace ).mean();
avgFace.clm._pglobl.set( i, 0, poseInfo[i].mean() );
avgFace.clm._pglobl.set( i, 0, poseInfo[i].mean() );