Class CeresSolver.LinearCostFunction

  • Enclosing class:
    CeresSolver

    class CeresSolver.LinearCostFunction
    extends CeresSolver.CostFunction
    Helper cost function that multiplies the parameters by the given jacobians and adds a constant offset.
    • Field Detail

      • residual_J_params_

        private java.util.Vector<Jama.Matrix> residual_J_params_
      • jacobian_offsets_

        private java.util.HashMap<java.lang.Integer,​Jama.Matrix> jacobian_offsets_
      • residuals_offset_

        private java.util.Vector<java.lang.Double> residuals_offset_
    • Constructor Detail

      • LinearCostFunction

        public LinearCostFunction​(java.util.Vector<java.lang.Double> residuals_offset)
    • Method Detail

      • Evaluate

        public boolean Evaluate​(java.util.Vector<double[]> parameter_ptrs,
                                double[] residuals_ptr,
                                java.util.Vector<Jama.Matrix> residual_J_params)
      • Evaluate

        public boolean Evaluate​(java.util.Vector<double[]> parameter_ptrs,
                                double[] residuals_ptr,
                                double[][] residual_J_params)
        Overrides:
        Evaluate in class CeresSolver.CostFunction
      • Evaluate

        public boolean Evaluate​(java.util.Vector<double[]> parameter_ptrs,
                                double[] residuals_ptr,
                                double[][] residual_J_params,
                                int[] jacobian_offsets)
        Overrides:
        Evaluate in class CeresSolver.CostFunction
      • Evaluate

        public boolean Evaluate​(double[][] parameter_ptrs,
                                double[] residuals_ptr)
      • AddParameter

        public void AddParameter​(Jama.Matrix residual_J_param,
                                 java.lang.String testName,
                                 boolean[] passed)
      • SetJacobianOffset

        public void SetJacobianOffset​(int index,
                                      Jama.Matrix offset,
                                      java.lang.String testName,
                                      boolean[] passed)