LibMuse 6.0.2
com.choosemuse.libmuse.AdvertisingStats Class Reference

Public Member Functions

 AdvertisingStats (int numAdvertisingPackets, double avgAdvertisingInterval, double sigmaAdvertisingInterval, double maxAdvertisingInterval, boolean isLost, boolean hasBadMac)
 
int getNumAdvertisingPackets ()
 
double getAvgAdvertisingInterval ()
 
double getSigmaAdvertisingInterval ()
 
double getMaxAdvertisingInterval ()
 
boolean getIsLost ()
 
boolean getHasBadMac ()
 
String toString ()
 

Detailed Description

Statistics about the advertising packets that LibMuse sees from Muse 2016 ( MU_02 ) headbands.

Member Function Documentation

§ getAvgAdvertisingInterval()

double com.choosemuse.libmuse.AdvertisingStats.getAvgAdvertisingInterval ( )
inline

Returns the average interval in seconds between advertising packets. This is a running average since the time the statistics were created or reset.

Returns
the average interval between advertising packets.

§ getHasBadMac()

boolean com.choosemuse.libmuse.AdvertisingStats.getHasBadMac ( )
inline

Indicates an issue with the MAC address of the headband.

Returns
true if for some reason the MAC address of a headband has changed since initial detection. false under normal circumstances.

§ getIsLost()

boolean com.choosemuse.libmuse.AdvertisingStats.getIsLost ( )
inline

Indicates if the phone has lost contact with the Muse headband. This is a subjective measurement. Even if this is true, the phone may still be able to connect with the headband if a connection is requested.

Returns
true if the phone has lost contact with the headband. false otherwise.

§ getMaxAdvertisingInterval()

double com.choosemuse.libmuse.AdvertisingStats.getMaxAdvertisingInterval ( )
inline

Returns the maximum interval in seconds between receiving 2 advertising packets.

Returns
the maximum interval between advertising packets.

§ getNumAdvertisingPackets()

int com.choosemuse.libmuse.AdvertisingStats.getNumAdvertisingPackets ( )
inline

Returns the number of advertising packets seen.

Returns
the number of advertising packets seen.

§ getSigmaAdvertisingInterval()

double com.choosemuse.libmuse.AdvertisingStats.getSigmaAdvertisingInterval ( )
inline

Returns the standard deviation of the average advertising interval.

Returns
the standard deviation of the average advertising interval.

§ toString()

String com.choosemuse.libmuse.AdvertisingStats.toString ( )
inline

Returns a string representation of this object.

Returns
a string representation of this object.

The documentation for this class was generated from the following file: