Here you can find the source of toDouble(float[] a)
Parameter | Description |
---|---|
a | a parameter |
public static double[] toDouble(float[] a)
//package com.java2s; /*----------------------------------------------------------------------------- * GDSC SMLM Software/* ww w . ja v a 2s .c om*/ * * Copyright (C) 2016 Alex Herbert * Genome Damage and Stability Centre * University of Sussex, UK * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. *---------------------------------------------------------------------------*/ public class Main { /** * Convert the input array to a double * * @param a * @return The new array */ public static double[] toDouble(float[] a) { if (a == null) return null; double[] b = new double[a.length]; for (int i = 0; i < a.length; i++) b[i] = a[i]; return b; } }