def __sendToDB(self, columnName, value):
		return EM_DBHelp.update_WordSeriesMetaData(db_conn, db_curs, columnName, value, seriesID=wordSeriesID)
firstOrderDiffPeriodOverride = []

def findFirstOrderDifferences(data, differenceLength):
	firstOrderDiffData = data[differenceLength:] - data[:-differenceLength]
	return findNormalDistRange(firstOrderDiffData)

def findNormalDistRange(data):
	func_round = np.vectorize(round)
	mean = np.mean(data)
	stds = np.std(data)
	stdVols = (data - mean)/stds
	return func_round(stdVols - 0.5*np.sign(stdVols))


getFromDB = lambda: EM_DBHelp.retrieve_DataSeriesMetaData(db_conn, db_curs, columnName, seriesID=dataSeriesID)
sendToDB = lambda: EM_DBHelp.update_WordSeriesMetaData(db_conn, db_curs, columnName, value, seriesID=wordSeriesID)	

class EMF_DataGenerator_Handle:
	def __init__(self, db_connection, db_cursor):
		self.db_conn = db_connection
		self.db_curs = db_cursor
		self.wordSeriesID = None
		self.dataSeriesID = None

	def __getFromDB(self, columnName):
		return EM_DBHelp.retrieve_DataSeriesMetaData(self.db_conn, self.db_curs, columnName, seriesID=self.dataSeriesID)

	def __sendToDB(self, columnName, value):
		return EM_DBHelp.update_WordSeriesMetaData(db_conn, db_curs, columnName, value, seriesID=wordSeriesID)

	def getDataHistory(self, dataType='float'):