public ArrayList <IdxDat <double> > GetAlphas() // returns pairs (support vector index, alpha * y) { Utils.ThrowException(mModelId == -1 ? new InvalidOperationException() : null); ArrayList <IdxDat <double> > alphas = new ArrayList <IdxDat <double> >(); for (int i = 0; i < SvmLightLib.GetSupportVectorCount(mModelId); i++) { double alpha = SvmLightLib.GetSupportVectorAlpha(mModelId, i); int idx = SvmLightLib.GetSupportVectorIndex(mModelId, i); alphas.Add(new IdxDat <double>(idx, alpha)); } return(alphas); }