void function ( ) { avE = sumE / equilibConfs ; avM = sumM / equilibConfs ; double loc0 = sumE2 / equilibConfs ; double loc1 = avE * avE ; double loc2 = sumM2 / equilibConfs ; double loc3 = avM * avM ; cV = inverseKT * ( loc0 - loc1 ) / ( double ) ( N * N ) ; chi = inverseKT * ( loc2 - loc3 ) / ( double ) ( N * N ) ; }
does the final calculations of cv and chi averaging over the equilibrium states concode_field_sep double cV concode_elem_sep double M concode_elem_sep double k concode_elem_sep double equilibConfs concode_elem_sep double avE concode_elem_sep double sumE concode_elem_sep double sumE2 concode_elem_sep int N concode_elem_sep double J concode_elem_sep double errorE concode_elem_sep boolean inEquilibrium concode_elem_sep double confs concode_elem_sep Spin[][] system concode_elem_sep double errorM concode_elem_sep double T concode_elem_sep double sumM concode_elem_sep double sumM2 concode_elem_sep double E concode_elem_sep double avM concode_elem_sep double chi concode_elem_sep double inverseKT concode_elem_sep boolean doFinalCalc concode_field_sep void setSpinState concode_elem_sep void updateM concode_elem_sep int getSpinState concode_elem_sep double getJ concode_elem_sep double getKT concode_elem_sep double getChi concode_elem_sep double getM concode_elem_sep void setT concode_elem_sep int getN concode_elem_sep void update concode_elem_sep void update concode_elem_sep void calcEquilibrium concode_elem_sep double getT concode_elem_sep boolean isInEquilibrium concode_elem_sep void setInEquilibrium concode_elem_sep void calcTotalE concode_elem_sep double getAvE concode_elem_sep double getCv concode_elem_sep Spin[][] getState concode_elem_sep void flipSpin concode_elem_sep double calcLocalE concode_elem_sep double calcLocalE concode_elem_sep void updateE concode_elem_sep void setDoFinalCalc concode_elem_sep double getE