public class CorePhenotype implements Phenotype
protected java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> myAttributeList
protected java.util.List<net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE> myAttributeTypeList
protected com.google.common.collect.Multimap<net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE,java.lang.Integer> myAttributeTypeMap
protected java.util.HashMap<java.lang.String,java.lang.Integer> myAttributeNameMap
protected int numberOfAttributes
protected int numberOfObservations
protected java.lang.String name
protected TaxaAttribute myTaxaAttribute
public CorePhenotype(java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> attributes,
java.util.List<net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE> types,
java.lang.String name)
public java.lang.Object[] getTableColumnNames()
public java.lang.String getTableTitle()
public int getColumnCount()
public long getRowCount()
public long getElementCount()
public java.lang.Object[] getRow(long row)
public java.lang.Object getValueAt(long row,
int col)
public java.lang.Object value(int obs,
int attrnum)
public boolean isMissing(int obs,
int attrnum)
public PhenotypeAttribute attribute(int attrnum)
public int indexOfAttribute(PhenotypeAttribute attribute)
public java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> attributeListCopy()
public java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> attributeListOfType(net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE type)
public java.util.stream.Stream<net.maizegenetics.phenotype.PhenotypeAttribute> attributeStream()
public java.util.stream.Stream<net.maizegenetics.phenotype.NumericAttribute> dataAttributeStream()
public java.util.stream.Stream<net.maizegenetics.phenotype.NumericAttribute> covariateAttributeStream()
public java.util.stream.Stream<net.maizegenetics.phenotype.CategoricalAttribute> factorAttributeStream()
public java.util.List<net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE> typeListCopy()
public TaxaList taxa()
public int numberOfAttributes()
public int numberOfAttributesOfType(net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE type)
public kotlin.Array[] attributeIndicesOfType(net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE type)
public net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE attributeType(int attrnum)
public int numberOfObservations()
public java.lang.String attributeName(int attrnum)
public java.lang.String name()
public boolean hasTaxaAttribute()
public TaxaAttribute taxaAttribute()
public int attributeIndexForName(java.lang.String name)
public boolean areTaxaReplicated()
public Phenotype asCorePhenotype()
public static boolean areAttributeAndTypeListsCompatible(java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> attributes,
java.util.List<net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE> types)