computes the `` cost '' for the parameters given . cost = 1/n sum f x ;p - y ^ 2 concode_field_sep DenseMatrix64F A concode_elem_sep DenseMatrix64F d concode_elem_sep DenseMatrix64F jacobian concode_elem_sep double finalCost concode_elem_sep DenseMatrix64F H concode_elem_sep DenseMatrix64F tempDH concode_elem_sep double initialLambda concode_elem_sep double initialCost concode_elem_sep DenseMatrix64F tempParam concode_elem_sep DenseMatrix64F temp0 concode_elem_sep DenseMatrix64F negDelta concode_elem_sep DenseMatrix64F temp1 concode_elem_sep double DELTA concode_elem_sep Function func concode_elem_sep DenseMatrix64F param concode_field_sep void compute concode_elem_sep void computeA concode_elem_sep boolean optimize concode_elem_sep boolean adjustParam concode_elem_sep DenseMatrix64F getParameters concode_elem_sep void computeNumericalJacobian concode_elem_sep double getInitialCost concode_elem_sep void computeDandH concode_elem_sep void configure concode_elem_sep double getFinalCost