docstr: ...Test that point process intensity is tracked correctly
          
docstr_tok: ["...","Test","that","point","process","intensity","is","tracked","correctly"]
code: def test_track_intensity(self):
      """...Test that point process intensity is tracked correctly"""
      t_values = np.linspace(0, self.run_time - 3, 100)
      y_values_1 = np.maximum(0.5 + np.sin(t_values), 0)
      y_values_2 = np.maximum(1.0 / (1 + t_values), 0)
  
      tf_1 = TimeFunction((t_values, y_values_1))
      tf_2 = TimeFunction((t_values, y_values_2))
  
      inhomo_poisson_process = SimuInhomogeneousPoisson(
          [tf_1, tf_2], end_time=self.run_time, seed=2937, verbose=False
      )
  
      inhomo_poisson_process.track_intensity(0.1)
      inhomo_poisson_process.simulate()
  
      tracked_intensity = inhomo_poisson_process.tracked_intensity
      intensity_times = inhomo_poisson_process.intensity_tracked_times
  
      # Ensure that intensity recorded is equal to the given TimeFunction
      np.testing.assert_array_almost_equal(
          tracked_intensity[0], tf_1.value(intensity_times)
      )
      np.testing.assert_array_almost_equal(
          tracked_intensity[1], tf_2.value(intensity_times)
      )
  
file_path: tick/tick/hawkes/simulation/tests/simu_point_process_test.py
imports: import unittest
  import numpy
  from tick.base import TimeFunction
  from tick.hawkes import SimuInhomogeneousPoisson, SimuPoissonProcess
label_desc: Use image node_id 8 for calling the Test obj's underlying member method code with example usage: obj.test_track_intensity() without return types