Skip to content

Clustering normalization of the distance between the trajectories does not work #3

@Ovewh

Description

@Ovewh

I attempted to normalize the distance between each trajectory since the spread would be larger towards the end of the trajectory.

  1. Calculate a mean distance from the cluster for the trajectories for each timestep along the trajectories.
do t=1,ntime
   distances=0
   do j=1,ncluster
     do i=1,n
       distances=distances+distance2(yl(t,i),xl(t,i),yclust(t,j),xclust(t,j))
     end do
   end do
   meandistance(t) = distances/(n*ncluster)
end do
  1. Calculate a mean distance for the trajectories and each cluster for each timestep along the trajectories.
do t=1,ntime
   do j=1,ncluster
      distances=0
       do i=1,n
          distances=distances+distance2(yl(t,i),xl(t,i),yclust(t,j),xclust(t,j))
       end do
       meandistance(t,j) = distances/(n)
   end do
end do

Then divide by this mean distance when before check where distance is less than mindistance

However then every trajectory get assign to one cluster.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions