File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -1503,24 +1503,26 @@ public static function hilbertTransformDominantCyclePhase(array $real): array
1503
1503
* Hilbert Transform - Phasor Components
1504
1504
*
1505
1505
* @param array $real Array of real values.
1506
+ * @param array $inPhase Empty array, will be filled with in phase data.
1506
1507
*
1507
1508
* @return array Returns an array with calculated data or false on failure.
1508
1509
*/
1509
- public static function hilbertTransformPhasorComponents (array $ real ): array
1510
+ public static function hilbertTransformPhasorComponents (array $ real, array & $ inPhase ): array
1510
1511
{
1511
- return static ::ht_phasor ($ real );
1512
+ return static ::ht_phasor ($ real, $ inPhase );
1512
1513
}
1513
1514
1514
1515
/**
1515
1516
* Hilbert Transform - SineWave
1516
1517
*
1517
1518
* @param array $real Array of real values.
1519
+ * @param array $sine Empty array, will be filled with sine data.
1518
1520
*
1519
1521
* @return array Returns an array with calculated data or false on failure.
1520
1522
*/
1521
- public static function hilbertTransformSineWave (array $ real ): array
1523
+ public static function hilbertTransformSineWave (array $ real, array & $ sine ): array
1522
1524
{
1523
- return static ::ht_sine ($ real );
1525
+ return static ::ht_sine ($ real, $ sine );
1524
1526
}
1525
1527
1526
1528
/**
Original file line number Diff line number Diff line change @@ -1819,13 +1819,14 @@ public static function ht_dcphase(array $real): array
1819
1819
/**
1820
1820
* Hilbert Transform - Phasor Components
1821
1821
*
1822
- * @param array $real Array of real values.
1822
+ * @param array $real Array of real values.
1823
+ * @param array $inPhase Empty array, will be filled with in phase data.
1823
1824
*
1824
1825
* @return array Returns an array with calculated data or false on failure.
1825
1826
*/
1826
- public static function ht_phasor (array $ real ): array
1827
+ public static function ht_phasor (array $ real, array & $ inPhase ): array
1827
1828
{
1828
- $ return = trader_ht_phasor ($ real );
1829
+ $ return = trader_ht_phasor ($ real, $ inPhase );
1829
1830
static ::checkForError ();
1830
1831
1831
1832
return $ return ;
@@ -1835,12 +1836,13 @@ public static function ht_phasor(array $real): array
1835
1836
* Hilbert Transform - SineWave
1836
1837
*
1837
1838
* @param array $real Array of real values.
1839
+ * @param array $sine Empty array, will be filled with sine data.
1838
1840
*
1839
1841
* @return array Returns an array with calculated data or false on failure.
1840
1842
*/
1841
- public static function ht_sine (array $ real ): array
1843
+ public static function ht_sine (array $ real, array & $ sine ): array
1842
1844
{
1843
- $ return = trader_ht_sine ($ real );
1845
+ $ return = trader_ht_sine ($ real, $ sine );
1844
1846
static ::checkForError ();
1845
1847
1846
1848
return $ return ;
You can’t perform that action at this time.
0 commit comments