Метод | Описание | |
---|---|---|
calculateFileQuality ( String filepath ) : |
Calculates only the File Quality component of the Quality Coefficient
|
|
calculatePeerQuality ( int buffered, int queueSize ) : |
Calculates only the Peer Quality component of the Quality Coefficient
|
|
calculateQualityCoefficient ( String searchString, String tags, int buffered, int queueSize, String filepath ) : |
Calculates all components of the Quality Coefficient. This method extact file quality information directly from the file itself.
|
|
calculateQualityCoefficient ( String searchString, String tags, int buffered, int queueSize, int bitrate, int channelmode, int samplerate ) : |
Calculates all components of the Quality Coefficient. This method needs file quality information to be passed as arguments.
|
|
calculateSearchAffinity ( String searchString, String tags ) : |
Calculates only the Search Affinity Component of the Quality Coefficient.
|
Метод | Описание | |
---|---|---|
calculateAFF ( String searchString, String tags ) : double |
Calculates the affinity coefficient of a tag sets with a given search string. For implementation details read the Wiki Page for this coefficient (http://code.google.com/p/p2p-player/wiki/ImplicitQoS#Coefficiente_di_Affinità)
|
|
calculateFQ ( String filepath ) : |
Calculates the File Quality Coefficient extracting information from the MPEG file Header. For implementation details read the Wiki Page for this coefficient (http://code.google.com/p/p2p-player/wiki/ImplicitQoS#Coefficiente_di_Qualità_del_File)
|
|
calculateFQ ( int bitrate, int channelmode, int samplerate ) : |
Returns an object of type FileQualityCoefficient with the given components
|
|
calculatePQ ( int buffered, int queueSize ) : double |
Calculates Peer Quality Coefficient
|
public static calculateFileQuality ( String filepath ) : |
||
filepath | String | Path of the file to analyze |
Результат |
public static calculatePeerQuality ( int buffered, int queueSize ) : |
||
buffered | int | Number of buffered chunks |
queueSize | int | Size of the chunk queue |
Результат |
public static calculateQualityCoefficient ( String searchString, String tags, int buffered, int queueSize, String filepath ) : |
||
searchString | String | Searched String |
tags | String | List of tags returned by the research action |
buffered | int | Number of buffered chunks |
queueSize | int | Size of the chunk queue |
filepath | String | Path of the file to analyze |
Результат |
public static calculateQualityCoefficient ( String searchString, String tags, int buffered, int queueSize, int bitrate, int channelmode, int samplerate ) : |
||
searchString | String | Searched String |
tags | String | List of tags returned by the research action |
buffered | int | Number of buffered chunks |
queueSize | int | Size of the chunk queue |
bitrate | int | Bit rate component |
channelmode | int | Channel mode component |
samplerate | int | Sample rate component |
Результат |
public static calculateSearchAffinity ( String searchString, String tags ) : |
||
searchString | String | Searched String |
tags | String | List of tags returned by the research action |
Результат |