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

com.github.TKnudsen.ComplexDataObject.model.statistics.test.EntropyTest Maven / Gradle / Ivy

Go to download

A library that models real-world objects in Java, referred to as ComplexDataObjects. Other features: IO and preprocessing of ComplexDataObjects.

The newest version!
package com.github.TKnudsen.ComplexDataObject.model.statistics.test;

import java.util.ArrayList;
import java.util.Collection;

import com.github.TKnudsen.ComplexDataObject.model.statistics.Entropy;

/**
 * 

* Copyright: Copyright (c) 2016-2019 *

* * @author Juergen Bernard * @version 1.01 */ public class EntropyTest { public static void main(String args[]) { Collection distribution = new ArrayList(); distribution.add(0.3); distribution.add(0.2); distribution.add(0.2); distribution.add(0.2); distribution.add(0.2); System.out.println("Entropy: " + Entropy.calculateEntropy(distribution)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy