Skip to content

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

@Markiribu

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

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