public class NetworkPartition
extends java.lang.Object
| Constructor and Description |
|---|
NetworkPartition(Network prediction,
int cutoff,
int chuncks,
double coefs)
Constructs a new NetworkPartition object from a given ranking/original network, but first selecting the top of the ranking (defined by cutoff) and dividing it in X (defined by chuncks) parts of increasing size.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.HashMap<Network,java.lang.Double> |
getNetworkCoefMap() |
Network[] |
getNetworks() |
java.util.ArrayList<java.lang.Integer> |
getPartitions() |
Network |
getPrediction() |
void |
networkClear()
This method should be called when the network partition is no longer needed.
|
void |
setNetworkCoefMap(java.util.HashMap<Network,java.lang.Double> networkCoefMap) |
void |
setNetworks(Network[] networks) |
void |
setPartitions(java.util.ArrayList<java.lang.Integer> partitions) |
void |
setPrediction(Network prediction) |
public NetworkPartition(Network prediction, int cutoff, int chuncks, double coefs)
prediction - The ranking to be partionedcutoff - cutoff indicating the top of the rankingchuncks - how amount of partitionscoefs - the coefficients associated with the resulting partitionspublic void networkClear()
public java.util.HashMap<Network,java.lang.Double> getNetworkCoefMap()
public void setNetworkCoefMap(java.util.HashMap<Network,java.lang.Double> networkCoefMap)
public Network[] getNetworks()
public void setNetworks(Network[] networks)
public Network getPrediction()
public void setPrediction(Network prediction)
public java.util.ArrayList<java.lang.Integer> getPartitions()
public void setPartitions(java.util.ArrayList<java.lang.Integer> partitions)