예제 #1
0
    def test_transform_sample_hyperlog(self):
        xform = transforms.HyperlogTransform('hyper',
                                             param_t=10000,
                                             param_w=0.5,
                                             param_m=4.5,
                                             param_a=0)
        data1_sample.apply_transform(xform)

        self.assertIsInstance(data1_sample._transformed_events, np.ndarray)
예제 #2
0
    def test_inverse_hyperlog_transform():
        xform = transforms.HyperlogTransform('hyperlog',
                                             param_t=10000,
                                             param_w=0.5,
                                             param_m=4.5,
                                             param_a=0)
        y = xform.apply(test_data_range1)
        x = xform.inverse(y)

        np.testing.assert_array_almost_equal(test_data_range1, x, decimal=10)