Utils

public class Utils

Author

loreti

Functions

Link copied to clipboard
public static GraphModel<T> createGraphFromMatlabData<T>(int nodes, Array<Array<int>> edges, Array<T> weights)
Link copied to clipboard
public static RegularGridModel<T> createGridModel<T>(int rows, int cols, T w)
Link copied to clipboard
public static SpatialModel<T> createGridModelAsGraph<T>(int rows, int columns, boolean directed, T w)
Link copied to clipboard
Link copied to clipboard
public static LocationService<Double, Double> createLocServiceStatic(double start, double dt, double end, SpatialModel<Double> graph)
Link copied to clipboard
public static Signal<T> createSignal<T>(double start, double end, double dt, Function<Double, T> f)
Link copied to clipboard
public static SpatialModel<T> createSpatialModel<T>(int size, Map<Pair<Integer, Integer>, T> edges)
public static SpatialModel<T> createSpatialModel<T>(int size, BiFunction<Integer, Integer, T> edges)
Link copied to clipboard
public static SpatialTemporalSignal<T> createSpatioTemporalSignal<T>(int size, double start, double dt, double end, BiFunction<Double, Integer, T> f)
Link copied to clipboard
public static SpatialTemporalSignal<T> createSpatioTemporalSignalFromGrid<T>(int rowLength, int columnLength, double start, double dt, double end, BiFunction<Double, Pair<Integer, Integer>, T> f)
Link copied to clipboard
public static int gridIndexOf(int r, int c, int columns)
Link copied to clipboard
public static Pair<Integer, Integer> gridLocationOf(int i, int rows, int columns)