Skip to content

Question: Differences in density when calculating coefficients with or without normalization #21

Description

@Markiribu

When calculating the coefficient s from the basis, the overall distributions come differently depending if mass was normalized or not, ¿is this expected?

coefs_normalized = basis.createFromArray(mass=mass/np.sum(mass),
pos=pos.T,
time=0.0)
coefs_nonnormalized = basis.createFromArray(mass=mass,
pos=pos.T,
time=0.0)
field_dens_norm = EXPtools.visuals.visualize.slice_fields(basis, coefs_normalized, prop='dens')
field_dens_nonorm = EXPtools.visuals.visualize.slice_fields(basis, coefs_nonnormalized, prop='dens')

Top plot shows the density distribution when using the coefficients from the normalized mass array, and bottom show the density when using the coefficients from the non normalized array.

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions