func New(percentOver, k, classIndex int, classMinor, outliers string) (
	lnsmoteRun *Runtime,
) {
	lnsmoteRun = &Runtime{
		Runtime: smote.Runtime{
			Runtime: knn.Runtime{
				DistanceMethod: knn.TEuclidianDistance,
				ClassIndex:     classIndex,
				K:              k,
			},
			PercentOver: percentOver,
		},
		ClassMinor:   classMinor,
		OutliersFile: outliers,
	}
	return
}
New create and return new LnSmote object.
package lnsmote
import (
	"fmt"
	"math/rand"
	"github.com/shuLhan/share/lib/debug"
	"github.com/shuLhan/share/lib/dsv"
	"github.com/shuLhan/share/lib/mining/knn"
	"github.com/shuLhan/share/lib/mining/resampling/smote"
	"github.com/shuLhan/share/lib/tabula"
)
type Runtime struct {
	smote.Runtime
	ClassMinor string `json:"ClassMinor"`
	minorset tabula.DatasetInterface
	datasetRows *tabula.Rows
	outliers tabula.Rows
	OutliersFile string `json:"OutliersFile"`
}