private String toCSV(double[] array)
	{
		if(array.length == 0)
		{
			return null;
		}
		
		StringBuilder sb = new StringBuilder();
		
		sb.append(array[0]);
		for(int i=0; i<array.length; i++)
		{
			sb.append(",");
			sb.append(array[i]);
		}
		
		return sb.toString();
	}