Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $arrLocation1 = @{"123123123124234" = 1; "4563456345345" = 5; "3453245234234" = 4; "456456345345" = 4}
- $arrLocation2 = @{"123123123124234" = 16; "4563456345345" = 1; "3453245234234" = 15; "456456345345" = 20}
- $arrLocation3 = @{"123123123124234" = 20; "4563456345345" = 15; "3453245234234" = 1; "456456345345" = 15}
- $arrLocation4 = @{"123123123124234" = 15; "4563456345345" = 20; "3453245234234" = 15; "456456345345" = 1}
- $intLocation1Minimum = ($arrLocation1.Values | Measure-Object -Minimum).Minimum
- $intLocation2Minimum = ($arrLocation2.Values | Measure-Object -Minimum).Minimum
- $intLocation3Minimum = ($arrLocation3.Values | Measure-Object -Minimum).Minimum
- $intLocation4Minimum = ($arrLocation4.Values | Measure-Object -Minimum).Minimum
- $location1Beaconid = $arrLocation1.Keys | ? { $arrLocation1[$_] -eq $intLocation1Minimum }
- $location2Beaconid = $arrLocation2.Keys | ? { $arrLocation2[$_] -eq $intLocation2Minimum }
- $location3Beaconid = $arrLocation3.Keys | ? { $arrLocation3[$_] -eq $intLocation3Minimum }
- $location4Beaconid = $arrLocation4.Keys | ? { $arrLocation4[$_] -eq $intLocation4Minimum }
- $distance1_2 = ($arrLocation1[$location2Beaconid] + $arrLocation2[$location1Beaconid]) /2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement