All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.maizegenetics.dna.snp.byte2d.MemoryByte2D Maven / Gradle / Ivy

Go to download

TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage disequilibrium.

There is a newer version: 5.2.94
Show newest version
/*
 *  MemoryByte2D
 */
package net.maizegenetics.dna.snp.byte2d;

import net.maizegenetics.dna.snp.score.SiteScore;
import net.maizegenetics.util.SuperByteMatrix;

/**
 * @author Terry Casstevens
 */
public class MemoryByte2D extends AbstractByte2D {

    private final SuperByteMatrix myValues;

    MemoryByte2D(SiteScore.SITE_SCORE_TYPE scoreType, SuperByteMatrix values) {
        super(scoreType, values.getNumRows(), values.getNumColumns());
        myValues = values;
    }

    @Override
    public byte valueForAllele(int taxon, int site) {
        return myValues.get(taxon, site);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy