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

org.deeplearning4j.ui.stats.api.Histogram Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.deeplearning4j.ui.stats.api;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Histogram: values for a single histogram.
 * Assumption here is that the N bins are equally split between the min and max.
 * So, for nBins = 3, we have: Step = (max-min)/3.
 * First bin have bounds (min, min + 1 * step); second bin would have bounds (min + 1 * step, min + 2 * step) and so on
 *
 * @author Alex Black
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Histogram implements Serializable {
    private double min;
    private double max;
    private int nBins;
    private int[] binCounts;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy