Description Usage Arguments Value See Also Examples
Calculates list of all TSP features for an instance.
1 |
x |
[ |
rescale |
[ |
[list
].
feature_angle
,
feature_centroid
,
feature_cluster
,
feature_bounding_box
,
feature_chull
,
feature_distance
,
feature_modes
,
feature_mst
,
feature_nnds
1 2 | x = random_instance(10)
print(features(x))
|
Loading required package: ggplot2
Loading required package: TSP
Loading required package: MASS
$angle_min
[1] 0.01916526
$angle_median
[1] 2.015429
$angle_mean
[1] 1.635111
$angle_max
[1] 3.095326
$angle_sd
[1] 1.285355
$angle_span
[1] 3.07616
$angle_coef_of_var
[1] 0.7860966
$centroid_centroid_x
[1] 0.4774487
$centroid_centroid_y
[1] 0.4628205
$centroid_dist_min
[1] 0.2871484
$centroid_dist_median
[1] 0.4157636
$centroid_dist_mean
[1] 0.4585977
$centroid_dist_max
[1] 0.7186926
$centroid_dist_sd
[1] 0.1596592
$centroid_dist_span
[1] 0.4315443
$centroid_dist_coef_of_var
[1] 0.3481466
$cluster_01pct_number_of_clusters
[1] 0
$cluster_01pct_mean_distance_to_centroid
[1] NA
$cluster_05pct_number_of_clusters
[1] 0
$cluster_05pct_mean_distance_to_centroid
[1] NA
$cluster_10pct_number_of_clusters
[1] 0
$cluster_10pct_mean_distance_to_centroid
[1] NA
$bounding_box_10_ratio_of_cities_outside_box
[1] 0.4
$bounding_box_20_ratio_of_cities_outside_box
[1] 0.8
$bounding_box_30_ratio_of_cities_outside_box
[1] 1
$chull_area
[1] 0.5577037
$chull_points_on_hull
[1] 0.6
$distance_distances_shorter_mean_distance
[1] 0.48
$distance_distinct_distances
[1] 1
$distance_mode_frequency
[1] 10
$distance_mode_quantity
[1] 0.01
$distance_mode_mean
[1] 0
$distance_mean_tour_length
[1] 13.01875
$distance_sum_of_lowest_edge_values
[1] 2.455266
$distance_min
[1] 0
$distance_median
[1] 0.6382651
$distance_mean
[1] 0.5858437
$distance_max
[1] 1.413692
$distance_sd
[1] 0.3529026
$distance_span
[1] 1.413692
$distance_coef_of_var
[1] 0.6023835
$modes_number
[1] 1
$mst_depth_min
[1] 1
$mst_depth_median
[1] 2.5
$mst_depth_mean
[1] 2.6
$mst_depth_max
[1] 5
$mst_depth_sd
[1] 1.429841
$mst_depth_span
[1] 4
$mst_depth_coef_of_var
[1] 0.5499387
$mst_dists_min
[1] 0.1273895
$mst_dists_median
[1] 0.2299702
$mst_dists_mean
[1] 0.2420257
$mst_dists_max
[1] 0.3978545
$mst_dists_sd
[1] 0.08919182
$mst_dists_span
[1] 0.270465
$mst_dists_coef_of_var
[1] 0.3685222
$mst_dists_sum
[1] 0.0371811
$nnds_min
[1] 0.1273895
$nnds_median
[1] 0.188423
$nnds_mean
[1] 0.2004586
$nnds_max
[1] 0.3481322
$nnds_sd
[1] 0.06999125
$nnds_span
[1] 0.2207426
$nnds_coef_of_var
[1] 0.3491557
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.