Learn R Programming

tspmeta (version 1.2)

features: Calculates list of all TSP features for an instance.

Description

Calculates list of all TSP features for an instance.

Usage

features(x, rescale = TRUE)

Arguments

x
[tsp_instance] TSP instance
rescale
[logical(1)] Rescale x to $[0,1]^2$ before calculation of features? Default is TRUE.

Value

[list].

See Also

feature_angle, feature_centroid, feature_cluster, feature_bounding_box, feature_chull, feature_distance, feature_modes, feature_mst, feature_nnds

Examples

Run this code
x = random_instance(10)
print(features(x))

Run the code above in your browser using DataLab