Java Binary Encode toBinary(final double d)

Here you can find the source of toBinary(final double d)

Description

to Binary

License

Open Source License

Declaration

public static double toBinary(final double d) 

Method Source Code

//package com.java2s;
/**//from w  w w.j av a  2  s.c  o m
 * Introduction to Neural Networks with Java, 2nd Edition
 * Copyright 2008 by Heaton Research, Inc. 
 * http://www.heatonresearch.com/books/java-neural-2/
 * 
 * ISBN13: 978-1-60439-008-7      
 * ISBN:   1-60439-008-5
 *   
 * This class is released under the:
 * GNU Lesser General Public License (LGPL)
 * http://www.gnu.org/copyleft/lesser.html
 */

public class Main {
    public static double toBinary(final double d) {
        return (d + 1) / 2.0;
    }
}

Related

  1. toBinary(byte b)
  2. toBinary(byte[] bytes)
  3. toBinary(final byte[] array, final int offset, final int length)
  4. toBinary(final byte[] bytes)
  5. toBinary(final double d)
  6. toBinary(final Object o)
  7. toBinary(int nr, int bits)
  8. toBinary(int number, int length)
  9. toBinary(int val)