breaking out continuous feature quantiser code to api level