Gets a byte array representation of this instance. Note: No guarantees are made regarding stability of the representation between versions.
()
| 298 | |
| 299 | |
| 300 | public byte[] toByteArray() { |
| 301 | ByteBuffer buffer = ByteBuffer.allocate(BYTES).order(ByteOrder.LITTLE_ENDIAN); |
| 302 | xStats.writeTo(buffer); |
| 303 | yStats.writeTo(buffer); |
| 304 | buffer.putDouble(sumOfProductsOfDeltas); |
| 305 | return buffer.array(); |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * Creates a {@link PairedStats} instance from the given byte representation which was obtained by |