largeRCRF-Java/src/main/java/ca/joeltherrien/randomforest/CovariateRow.java

28 lines
533 B
Java
Raw Normal View History

package ca.joeltherrien.randomforest;
import ca.joeltherrien.randomforest.covariates.Covariate;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import java.util.Map;
@RequiredArgsConstructor
public class CovariateRow {
private final Map<String, Covariate.Value> valueMap;
@Getter
private final int id;
public Covariate.Value<?> getCovariateValue(String name){
return valueMap.get(name);
}
@Override
public String toString(){
return "CovariateRow " + this.id;
}
}