Simulate the performance of a chemical sensor