public double TrainClass(double learnRate, double momentum, vector_double input, int classNr)
    {
        double ret = VisionLabPINVOKE.BPN_Classifier_TrainClass(swigCPtr, learnRate, momentum, vector_double.getCPtr(input), classNr);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }