Refactoring

- Renaming dvalue to discretise_value