Add general api for cumulant estimation