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

org.opencb.biodata.models.alignment.RegionCoverageStats Maven / Gradle / Ivy

The newest version!
/*
 * 
 *
 */

package org.opencb.biodata.models.alignment;

public class RegionCoverageStats {

    private int min;
    private int max;
    private double avg;

    public RegionCoverageStats() {
    }

    public RegionCoverageStats(int min, int max, double avg) {
        this.min = min;
        this.max = max;
        this.avg = avg;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Stats{");
        sb.append("min=").append(min);
        sb.append(", max=").append(max);
        sb.append(", avg=").append(avg);
        sb.append('}');
        return sb.toString();
    }

    public int getMin() {
        return min;
    }

    public RegionCoverageStats setMin(int min) {
        this.min = min;
        return this;
    }

    public int getMax() {
        return max;
    }

    public RegionCoverageStats setMax(int max) {
        this.max = max;
        return this;
    }

    public double getAvg() {
        return avg;
    }

    public RegionCoverageStats setAvg(double avg) {
        this.avg = avg;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy